Trait sp_core::crypto::FromEntropy
source · pub trait FromEntropy: Sized {
// Required method
fn from_entropy(input: &mut impl Input) -> Result<Self, Error>;
}Expand description
Create random values of Self given a stream of entropy.
Required Methods§
sourcefn from_entropy(input: &mut impl Input) -> Result<Self, Error>
fn from_entropy(input: &mut impl Input) -> Result<Self, Error>
Create a random value of Self given a stream of random bytes on input. May only fail if
input has an error.