pub fn generate() -> Result<(Zeroizing<String>, Zeroizing<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.
The mnemonic and secret key are returned in Zeroizing wrappers so the
plaintext is cleared from memory when dropped.