Skip to main content

generate

Function generate 

Source
pub fn generate(
    name: &str,
    address: &str,
    passphrase: &str,
) -> Result<KeySummary, String>
Expand description

Makes a key for you: Curve25519, for signing and encrypting, valid three years; its secret parts encrypted with passphrase. Its revocation certificate, which Sequoia makes with it, is kept beside it (revocation_path): the only way to revoke the key once it is lost.