fn from_phrase(phrase: &str, password: Option<&str>) -> Result<Pair, SecretStringError> {
		let big_seed = seed_from_entropy(
			Mnemonic::from_phrase(phrase, Language::English)
				.map_err(|_| SecretStringError::InvalidPhrase)?.entropy(),
			password.unwrap_or(""),
		).map_err(|_| SecretStringError::InvalidSeed)?;
		Self::from_seed_slice(&big_seed[0..32])
	}
/// Generate key pair from given recovery phrase and password.
Generate key pair from given recovery phrase and password.
Generate key pair from given recovery phrase and password .
fn from_phrase(phrase: &str, password: Option<&str>) -> Result<Pair, SecretStringError> {
		let big_seed = seed_from_entropy(
			Mnemonic::from_phrase(phrase, Language::English)
				.map_err(|_| SecretStringError::InvalidPhrase)?.entropy(),
			password.unwrap_or(""),
		).map_err(|_| SecretStringError::InvalidSeed)?;
		Self::from_seed_slice(&big_seed[0..32])
	}
fn from_phrase ( phrase : & str , password : Option < & str > ) -> Result < Pair , SecretStringError > { let big_seed = seed_from_entropy ( Mnemonic :: from_phrase ( phrase , Language :: English ) . map_err ( | _ | SecretStringError :: InvalidPhrase ) ? . entropy ( ) , password . unwrap_or ( " " ) , ) . map_err ( | _ | SecretStringError :: InvalidSeed ) ? ; Self :: from_seed_slice ( & big_seed [ 0 .. 32 ] ) }
Generate key pair from given recovery phrase and password.
Generate key pair from given recovery phrase and password .
phrase
&str
password
Option<&str>
phrase
&str
password
Option<&str>