NAME

Net::Nostr::Core - Core Perl tooling for the Nostr protocol

SYNOPSIS

use Net::Nostr::Event;
use Net::Nostr::Key;
use Net::Nostr::Message;

my $key = Net::Nostr::Key->new;
my $event = Net::Nostr::Event->new(
    pubkey  => $key->pubkey_hex,
    kind    => 1,
    content => 'hello',
);

$key->sign_event($event);

DESCRIPTION

Net::Nostr::Core provides protocol and NIP tooling used by the Nostr client and relay distributions, including Net::Nostr::Event, Net::Nostr::Key, Net::Nostr::Filter, and Net::Nostr::Message.

Install Net::Nostr::Client for a WebSocket relay client, Net::Nostr::Relay for a relay server, or Net::Nostr for the compatibility shim that installs both.

NIP CONFORMANCE

Net::Nostr::Core targets nostr-protocol/nips commit 8f8444d0 (2026-07-01). See Net::Nostr for the supported NIP list.

OPTIONAL DEPENDENCIES

Net::Nostr::Identifier includes pure NIP-05 helpers that work with only this distribution installed. Its network methods, lookup and verify, require AnyEvent::HTTP and load it only when those methods are called.

AnyEvent::HTTP is declared as a recommended dependency for this distribution instead of a hard requirement. Installing the Net::Nostr shim distribution pulls it in as a hard dependency for users who want the historical full-stack install.

SEE ALSO

Net::Nostr, Net::Nostr::Client, Net::Nostr::Relay, NIP-01