fn generate_with_phrase(password: Option<&str>) -> (Pair, String) {
		let mnemonic = Mnemonic::new(MnemonicType::Words12, Language::English);
		let phrase = mnemonic.phrase();
		(
			Self::from_phrase(phrase, password).expect("All phrases generated by Mnemonic are valid; qed"),
			phrase.to_owned(),
		)
	}
/// Generate new secure (random) key pair and provide the recovery phrase.
///
/// You can recover the same key later with `from_phrase`.
Generate new secure (random) key pair and provide the recovery phrase.
You can recover the same key later with `from_phrase`.
Generate new secure ( random ) key pair and provide the recovery phrase . You can recover the same key later with ` from_phrase ` .
fn generate_with_phrase(password: Option<&str>) -> (Pair, String) {
		let mnemonic = Mnemonic::new(MnemonicType::Words12, Language::English);
		let phrase = mnemonic.phrase();
		(
			Self::from_phrase(phrase, password).expect("All phrases generated by Mnemonic are valid; qed"),
			phrase.to_owned(),
		)
	}
fn generate_with_phrase ( password : Option < & str > ) -> ( Pair , String ) { let mnemonic = Mnemonic :: new ( MnemonicType :: Words12 , Language :: English ) ; let phrase = mnemonic . phrase ( ) ; ( Self :: from_phrase ( phrase , password ) . expect ( " " ) , phrase . to_owned ( ) , ) }
Generate new secure (random) key pair and provide the recovery phrase.
Generate new secure ( random ) key pair and provide the recovery phrase .
password
Option<&str>
password
Option<&str>