[][src]Trait solana_libra_nextgen_crypto::traits::Uniform

pub trait Uniform {
    fn generate_for_testing<R>(rng: &mut R) -> Self
    where
        R: SeedableRng + RngCore + CryptoRng
; }

A type family for schemes which know how to generate key material from a cryptographically-secure CryptoRng.

Required methods

fn generate_for_testing<R>(rng: &mut R) -> Self where
    R: SeedableRng + RngCore + CryptoRng

Generate key material from an RNG for testing purposes.

Loading content...

Implementations on Foreign Types

impl<S, P> Uniform for (S, P) where
    S: Uniform,
    P: From<&'a S>, 
[src]

A pair consisting of a private and public key

Loading content...

Implementors

impl Uniform for BLS12381PrivateKey[src]

impl Uniform for Ed25519PrivateKey[src]

impl Uniform for VRFPrivateKey[src]

impl<S, P> Uniform for KeyPair<S, P> where
    S: Uniform,
    P: From<&'a S>, 
[src]

Loading content...