nostro2-traits
Signing surface for the nostro2 ecosystem. Two traits, no data
structures, no curve dependencies — nostro2 (data), nostro2-nips
(protocols), and nostro2-signer (impls) all depend on this crate.
- [
NostrSigner]: minimum signing surface (sign a 32-byte prehash, expose the x-only pubkey, generate a fresh signer). Hardware wallets, NIP-46 remote signers, and browser extensions can implement this without ever exposing key material. - [
NostrKeypair]: extends [NostrSigner] with raw secret-key export and ECDH for in-process keypairs. - [
hex]: minimal hex encode/decode traits (Hexable,FromHex).