Trait nostr_sdk::nips::nip06::FromMnemonic
source · 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;
}