Trait tari_crypto::keys::SecretKey [−][src]
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,
ⓘ
let mut rng = rand::thread_rng(); let k = RistrettoSecretKey::random(&mut rng); let p = RistrettoPublicKey::from_secret_key(&k);