pub fn from_entropy(entropy: &[u8], password: Option<&str>) -> Pair {
		let mini_key: MiniSecretKey = mini_secret_from_entropy(entropy, password.unwrap_or(""))
			.expect("32 bytes can always build a key; qed");
		let kp = mini_key.expand_to_keypair();
		Pair(kp)
	}
/// Make a new key pair from binary data derived from a valid seed phrase.
///
/// This uses a key derivation function to convert the entropy into a seed, then returns
/// the pair generated from it.
Make a new key pair from binary data derived from a valid seed phrase.
This uses a key derivation function to convert the entropy into a seed, then returns
the pair generated from it.
Make a new key pair from binary data derived from a valid seed phrase . This uses a key derivation function to convert the entropy into a seed then returns the pair generated from it .
pub fn from_entropy(entropy: &[u8], password: Option<&str>) -> Pair {
		let mini_key: MiniSecretKey = mini_secret_from_entropy(entropy, password.unwrap_or(""))
			.expect("32 bytes can always build a key; qed");
		let kp = mini_key.expand_to_keypair();
		Pair(kp)
	}
pub fn from_entropy ( entropy : & [ u8 ] , password : Option < & str > ) -> Pair { let mini_key : MiniSecretKey = mini_secret_from_entropy ( entropy , password . unwrap_or ( " " ) ) . expect ( " " ) ; let kp = mini_key . expand_to_keypair ( ) ; Pair ( kp ) }
Make a new key pair from binary data derived from a valid seed phrase.
Make a new key pair from binary data derived from a valid seed phrase .
entropy
&[u8]
password
Option<&str>
entropy
&[u8]
password
Option<&str>