Skip to main content

Crate ritualistic

Crate ritualistic 

Source
Expand description

§ritualistic

nostr types and utilities

this library provides types and utilities for working with the Nostr protocol, including events, filters, relays, and connections.

Re-exports§

pub use event::ArchivedEvent;
pub use event::Event;
pub use event_template::EventTemplate;
pub use filter::Filter;
pub use filter::TagQuery;
pub use keys::PubKey;
pub use keys::SecretKey;
pub use metadata::Metadata;
pub use pointers::AddressPointer;
pub use pointers::EventPointer;
pub use pointers::Pointer;
pub use pointers::ProfilePointer;
pub use profile::Profile;
pub use timestamp::Timestamp;

Modules§

addresses
bunker_client
codes
envelopes
event
event_template
filter
helpers
keys
message_encryption
metadata
ncryptsec1
pointers
profile
relay_information
server
Nostr relay server implementation using hyper
timestamp

Structs§

ArchivedID
An archived ID
ArchivedKind
An archived Kind
ArchivedSignature
An archived Signature
BTreeEventDatabase
btree-based in-memory event database
ID
A 32-byte event ID
IDResolver
The resolver for an archived ID
Kind
event kind type
KindResolver
The resolver for an archived Kind
Network
PublishResult
Relay
ShortID
Signature
A 64-byte signature
SignatureResolver
The resolver for an archived Signature
SubscriptionOptions
Tags
collection of tags

Enums§

CloseReason
IDError
Occurrence
SignatureError

Traits§

EventDatabase

Functions§

normalize_url
normalize a URL and replace http://, https:// schemes with ws://, wss://

Type Aliases§

Tag
a single tag (array of strings)