bp::secp256k1

Function generate_keypair

Source
pub fn generate_keypair<R>(rng: &mut R) -> (SecretKey, PublicKey)
where R: Rng + ?Sized,
Available on crate features global-context and rand only.
Expand description

Generates a random keypair using the global SECP256K1 context.