Trait crypto_wallet_gen::MnemonicFactory [−][src]
pub trait MnemonicFactory: Sized { fn generate() -> Result<Self>; fn from_phrase(phrase: &str) -> Result<Self>; fn validate(phrase: &str) -> Result<()>; }
Required methods
fn generate() -> Result<Self>
[src]
fn from_phrase(phrase: &str) -> Result<Self>
[src]
fn validate(phrase: &str) -> Result<()>
[src]
Validate a mnemonic phrase
The phrase supplied will be checked for word length and validated according to the checksum specified in BIP0039.
Implementors
impl MnemonicFactory for Bip39Mnemonic
[src]
impl MnemonicFactory for Bip39Mnemonic
[src]impl MnemonicFactory for ScryptMnemonic
[src]
impl MnemonicFactory for ScryptMnemonic
[src]