MnemonicFactory

Trait MnemonicFactory 

Source
pub trait MnemonicFactory: Sized {
    // Required methods
    fn generate() -> Result<Self>;
    fn from_phrase(phrase: &str) -> Result<Self>;
    fn validate(phrase: &str) -> Result<()>;
}

Required Methods§

Source

fn generate() -> Result<Self>

Source

fn from_phrase(phrase: &str) -> Result<Self>

Source

fn validate(phrase: &str) -> Result<()>

Validate a mnemonic phrase

The phrase supplied will be checked for word length and validated according to the checksum specified in BIP0039.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§