Skip to main content

generate

Function generate 

Source
pub fn generate() -> Result<(String, String, String), RecoveryError>
Expand description

Generate a new age keypair and return the BIP39 24-word mnemonic, secret key string, and public key string.

24 BIP39 words encode 256 bits (32 bytes) — exactly the size of an age x25519 secret key. The mnemonic is a direct encoding of the key bytes with no derivation step. Same words, same key, always.