Expand description
FIPS Identity System
Node identity based on Nostr keypairs (secp256k1). The node_addr is derived from the public key via SHA-256, and the FIPS address uses an IPv6-compatible format with the 0xfd prefix.
Structs§
- Auth
Challenge - A 32-byte random authentication challenge.
- Auth
Response - Response to an authentication challenge.
- Fips
Address - 128-bit FIPS address with IPv6-compatible format.
- Identity
- A FIPS node identity consisting of a keypair and derived identifiers.
- Node
Addr - 16-byte node identifier derived from truncated SHA-256(pubkey).
- Peer
Identity - A known peer’s identity (public key only, no signing capability).
Enums§
- Identity
Error - Errors that can occur in identity operations.
Constants§
- FIPS_
ADDRESS_ PREFIX - FIPS address prefix (IPv6 ULA range).
Functions§
- decode_
npub - Decode an npub string to an x-only public key.
- decode_
nsec - Decode an nsec string to a secret key.
- decode_
secret - Decode a secret key from either nsec (bech32) or hex format.
- encode_
npub - Encode an x-only public key as a bech32 npub string (NIP-19).
- encode_
nsec - Encode a secret key as a bech32 nsec string (NIP-19).