exonum_crypto

Function gen_keypair

Source
pub fn gen_keypair() -> (PublicKey, SecretKey)
Expand description

Generates a secret key and a corresponding public key using a cryptographically secure pseudo-random number generator.

ยงExamples

The example below generates a unique keypair.

let (public_key, secret_key) = exonum_crypto::gen_keypair();