[−][src]Trait tari_crypto::keys::SecretKey
A trait specifying common behaviour for representing SecretKey
s. Specific elliptic curve
implementations need to implement this trait for them to be used in Tari.
Example
Assuming there is a Ristretto implementation,
ⓘThis code runs with edition 2018
let mut rng = rand::thread_rng(); let k = RistrettoSecretKey::random(&mut rng); let p = RistrettoPublicKey::from_secret_key(&k);