Trait gclient::ext::sp_core::crypto::FromEntropy
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§
fn 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.
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
§impl FromEntropy for bool
impl FromEntropy for bool
§impl FromEntropy for i8
impl FromEntropy for i8
§impl FromEntropy for i16
impl FromEntropy for i16
§impl FromEntropy for i32
impl FromEntropy for i32
§impl FromEntropy for i64
impl FromEntropy for i64
§impl FromEntropy for i128
impl FromEntropy for i128
§impl FromEntropy for u8
impl FromEntropy for u8
§impl FromEntropy for u16
impl FromEntropy for u16
§impl FromEntropy for u32
impl FromEntropy for u32
§impl FromEntropy for u64
impl FromEntropy for u64
§impl FromEntropy for u128
impl FromEntropy for u128
§impl FromEntropy for ()
impl FromEntropy for ()
Create the unit type for any given input.
§impl FromEntropy for [i16; 112]
impl FromEntropy for [i16; 112]
§impl FromEntropy for [i16; 128]
impl FromEntropy for [i16; 128]
§impl FromEntropy for [i16; 160]
impl FromEntropy for [i16; 160]
§impl FromEntropy for [i16; 177]
impl FromEntropy for [i16; 177]
§impl FromEntropy for [i16; 192]
impl FromEntropy for [i16; 192]
§impl FromEntropy for [i16; 224]
impl FromEntropy for [i16; 224]
§impl FromEntropy for [i16; 256]
impl FromEntropy for [i16; 256]
§impl FromEntropy for [i32; 112]
impl FromEntropy for [i32; 112]
§impl FromEntropy for [i32; 128]
impl FromEntropy for [i32; 128]
§impl FromEntropy for [i32; 160]
impl FromEntropy for [i32; 160]
§impl FromEntropy for [i32; 177]
impl FromEntropy for [i32; 177]
§impl FromEntropy for [i32; 192]
impl FromEntropy for [i32; 192]
§impl FromEntropy for [i32; 224]
impl FromEntropy for [i32; 224]
§impl FromEntropy for [i32; 256]
impl FromEntropy for [i32; 256]
§impl FromEntropy for [i64; 112]
impl FromEntropy for [i64; 112]
§impl FromEntropy for [i64; 128]
impl FromEntropy for [i64; 128]
§impl FromEntropy for [i64; 160]
impl FromEntropy for [i64; 160]
§impl FromEntropy for [i64; 177]
impl FromEntropy for [i64; 177]
§impl FromEntropy for [i64; 192]
impl FromEntropy for [i64; 192]
§impl FromEntropy for [i64; 224]
impl FromEntropy for [i64; 224]
§impl FromEntropy for [i64; 256]
impl FromEntropy for [i64; 256]
§impl FromEntropy for [i128; 10]
impl FromEntropy for [i128; 10]
§impl FromEntropy for [i128; 11]
impl FromEntropy for [i128; 11]
§impl FromEntropy for [i128; 12]
impl FromEntropy for [i128; 12]
§impl FromEntropy for [i128; 13]
impl FromEntropy for [i128; 13]
§impl FromEntropy for [i128; 14]
impl FromEntropy for [i128; 14]
§impl FromEntropy for [i128; 15]
impl FromEntropy for [i128; 15]
§impl FromEntropy for [i128; 16]
impl FromEntropy for [i128; 16]
§impl FromEntropy for [i128; 17]
impl FromEntropy for [i128; 17]
§impl FromEntropy for [i128; 18]
impl FromEntropy for [i128; 18]
§impl FromEntropy for [i128; 19]
impl FromEntropy for [i128; 19]
§impl FromEntropy for [i128; 20]
impl FromEntropy for [i128; 20]
§impl FromEntropy for [i128; 21]
impl FromEntropy for [i128; 21]
§impl FromEntropy for [i128; 22]
impl FromEntropy for [i128; 22]
§impl FromEntropy for [i128; 23]
impl FromEntropy for [i128; 23]
§impl FromEntropy for [i128; 24]
impl FromEntropy for [i128; 24]
§impl FromEntropy for [i128; 25]
impl FromEntropy for [i128; 25]
§impl FromEntropy for [i128; 26]
impl FromEntropy for [i128; 26]
§impl FromEntropy for [i128; 27]
impl FromEntropy for [i128; 27]
§impl FromEntropy for [i128; 28]
impl FromEntropy for [i128; 28]
§impl FromEntropy for [i128; 29]
impl FromEntropy for [i128; 29]
§impl FromEntropy for [i128; 30]
impl FromEntropy for [i128; 30]
§impl FromEntropy for [i128; 31]
impl FromEntropy for [i128; 31]
§impl FromEntropy for [i128; 32]
impl FromEntropy for [i128; 32]
§impl FromEntropy for [i128; 36]
impl FromEntropy for [i128; 36]
§impl FromEntropy for [i128; 40]
impl FromEntropy for [i128; 40]
§impl FromEntropy for [i128; 44]
impl FromEntropy for [i128; 44]
§impl FromEntropy for [i128; 48]
impl FromEntropy for [i128; 48]
§impl FromEntropy for [i128; 56]
impl FromEntropy for [i128; 56]
§impl FromEntropy for [i128; 64]
impl FromEntropy for [i128; 64]
§impl FromEntropy for [i128; 72]
impl FromEntropy for [i128; 72]
§impl FromEntropy for [i128; 80]
impl FromEntropy for [i128; 80]
§impl FromEntropy for [i128; 96]
impl FromEntropy for [i128; 96]
§impl FromEntropy for [i128; 112]
impl FromEntropy for [i128; 112]
§impl FromEntropy for [i128; 128]
impl FromEntropy for [i128; 128]
§impl FromEntropy for [i128; 160]
impl FromEntropy for [i128; 160]
§impl FromEntropy for [i128; 177]
impl FromEntropy for [i128; 177]
§impl FromEntropy for [i128; 192]
impl FromEntropy for [i128; 192]
§impl FromEntropy for [i128; 224]
impl FromEntropy for [i128; 224]
§impl FromEntropy for [i128; 256]
impl FromEntropy for [i128; 256]
§impl FromEntropy for [u16; 112]
impl FromEntropy for [u16; 112]
§impl FromEntropy for [u16; 128]
impl FromEntropy for [u16; 128]
§impl FromEntropy for [u16; 160]
impl FromEntropy for [u16; 160]
§impl FromEntropy for [u16; 177]
impl FromEntropy for [u16; 177]
§impl FromEntropy for [u16; 192]
impl FromEntropy for [u16; 192]
§impl FromEntropy for [u16; 224]
impl FromEntropy for [u16; 224]
§impl FromEntropy for [u16; 256]
impl FromEntropy for [u16; 256]
§impl FromEntropy for [u32; 112]
impl FromEntropy for [u32; 112]
§impl FromEntropy for [u32; 128]
impl FromEntropy for [u32; 128]
§impl FromEntropy for [u32; 160]
impl FromEntropy for [u32; 160]
§impl FromEntropy for [u32; 177]
impl FromEntropy for [u32; 177]
§impl FromEntropy for [u32; 192]
impl FromEntropy for [u32; 192]
§impl FromEntropy for [u32; 224]
impl FromEntropy for [u32; 224]
§impl FromEntropy for [u32; 256]
impl FromEntropy for [u32; 256]
§impl FromEntropy for [u64; 112]
impl FromEntropy for [u64; 112]
§impl FromEntropy for [u64; 128]
impl FromEntropy for [u64; 128]
§impl FromEntropy for [u64; 160]
impl FromEntropy for [u64; 160]
§impl FromEntropy for [u64; 177]
impl FromEntropy for [u64; 177]
§impl FromEntropy for [u64; 192]
impl FromEntropy for [u64; 192]
§impl FromEntropy for [u64; 224]
impl FromEntropy for [u64; 224]
§impl FromEntropy for [u64; 256]
impl FromEntropy for [u64; 256]
§impl FromEntropy for [u128; 10]
impl FromEntropy for [u128; 10]
§impl FromEntropy for [u128; 11]
impl FromEntropy for [u128; 11]
§impl FromEntropy for [u128; 12]
impl FromEntropy for [u128; 12]
§impl FromEntropy for [u128; 13]
impl FromEntropy for [u128; 13]
§impl FromEntropy for [u128; 14]
impl FromEntropy for [u128; 14]
§impl FromEntropy for [u128; 15]
impl FromEntropy for [u128; 15]
§impl FromEntropy for [u128; 16]
impl FromEntropy for [u128; 16]
§impl FromEntropy for [u128; 17]
impl FromEntropy for [u128; 17]
§impl FromEntropy for [u128; 18]
impl FromEntropy for [u128; 18]
§impl FromEntropy for [u128; 19]
impl FromEntropy for [u128; 19]
§impl FromEntropy for [u128; 20]
impl FromEntropy for [u128; 20]
§impl FromEntropy for [u128; 21]
impl FromEntropy for [u128; 21]
§impl FromEntropy for [u128; 22]
impl FromEntropy for [u128; 22]
§impl FromEntropy for [u128; 23]
impl FromEntropy for [u128; 23]
§impl FromEntropy for [u128; 24]
impl FromEntropy for [u128; 24]
§impl FromEntropy for [u128; 25]
impl FromEntropy for [u128; 25]
§impl FromEntropy for [u128; 26]
impl FromEntropy for [u128; 26]
§impl FromEntropy for [u128; 27]
impl FromEntropy for [u128; 27]
§impl FromEntropy for [u128; 28]
impl FromEntropy for [u128; 28]
§impl FromEntropy for [u128; 29]
impl FromEntropy for [u128; 29]
§impl FromEntropy for [u128; 30]
impl FromEntropy for [u128; 30]
§impl FromEntropy for [u128; 31]
impl FromEntropy for [u128; 31]
§impl FromEntropy for [u128; 32]
impl FromEntropy for [u128; 32]
§impl FromEntropy for [u128; 36]
impl FromEntropy for [u128; 36]
§impl FromEntropy for [u128; 40]
impl FromEntropy for [u128; 40]
§impl FromEntropy for [u128; 44]
impl FromEntropy for [u128; 44]
§impl FromEntropy for [u128; 48]
impl FromEntropy for [u128; 48]
§impl FromEntropy for [u128; 56]
impl FromEntropy for [u128; 56]
§impl FromEntropy for [u128; 64]
impl FromEntropy for [u128; 64]
§impl FromEntropy for [u128; 72]
impl FromEntropy for [u128; 72]
§impl FromEntropy for [u128; 80]
impl FromEntropy for [u128; 80]
§impl FromEntropy for [u128; 96]
impl FromEntropy for [u128; 96]
§impl FromEntropy for [u128; 112]
impl FromEntropy for [u128; 112]
§impl FromEntropy for [u128; 128]
impl FromEntropy for [u128; 128]
§impl FromEntropy for [u128; 160]
impl FromEntropy for [u128; 160]
§impl FromEntropy for [u128; 177]
impl FromEntropy for [u128; 177]
§impl FromEntropy for [u128; 192]
impl FromEntropy for [u128; 192]
§impl FromEntropy for [u128; 224]
impl FromEntropy for [u128; 224]
§impl FromEntropy for [u128; 256]
impl FromEntropy for [u128; 256]
Implementors§
impl FromEntropy for MultiSigner
impl FromEntropy for AccountId32
Creates an AccountId32
from the input, which should contain at least 32 bytes.