pub trait FromMnemonic: Sized {
    type Err;

    // Required methods
    fn from_mnemonic<S>(
        mnemonic: S,
        passphrase: Option<S>
    ) -> Result<Self, Self::Err>
       where S: Into<String>;
    fn from_mnemonic_with_ctx<C>(
        secp: &Secp256k1<C>,
        mnemonic: &str,
        passphrase: Option<&str>
    ) -> Result<Self, Self::Err>
       where C: Signing;
}

Required Associated Types§

Required Methods§

source

fn from_mnemonic<S>( mnemonic: S, passphrase: Option<S> ) -> Result<Self, Self::Err>where S: Into<String>,

source

fn from_mnemonic_with_ctx<C>( secp: &Secp256k1<C>, mnemonic: &str, passphrase: Option<&str> ) -> Result<Self, Self::Err>where C: Signing,

Implementors§