Shared Nostr protocol primitives for the nostr-bbs forum.
This crate provides the cryptographic and protocol building blocks shared between the WASM client bridge and the Rust Cloudflare Workers. It covers:
- NIP-01 event creation, signing, and verification
- NIP-44 encrypted direct messages (ChaCha20-Poly1305)
- NIP-98 HTTP auth token creation and verification
- DID:nostr document generation (delegates to
solid_pod_rs::did_nostr_types) - Key management including HKDF derivation from WebAuthn PRF output
- Value types (
EventId,Timestamp,Tag, etc.)