Expand description
BIP-39 mnemonic and deterministic key derivation for void identities.
This module provides:
- 24-word BIP-39 mnemonic generation
- Mnemonic → seed conversion
- HKDF-SHA256 derivation of signing and recipient keys from a seed
The derivation uses domain-separated HKDF so that the same seed produces distinct, deterministic Ed25519 signing and X25519 recipient keys.
Enums§
- Seed
Error - Errors during seed/mnemonic operations.
Functions§
- derive_
nostr_ key - Derive a secp256k1 Nostr secret key from an identity seed.
- derive_
recipient_ key - Derive an X25519 recipient secret key from an identity seed.
- derive_
repo_ owner_ key - Derive a per-repo Ed25519 owner signing key from an identity seed and repo ID.
- derive_
signing_ key - Derive an Ed25519 signing secret key from an identity seed.
- generate_
mnemonic - Generate a new 24-word BIP-39 mnemonic.
- mnemonic_
to_ seed - Convert a BIP-39 mnemonic phrase to a 64-byte seed.