Skip to main content

Module seed

Module seed 

Source
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§

SeedError
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.