pub trait SeedDerivable: Sized {
    // Required methods
    fn from_seed(seed: &[u8]) -> Result<Self, Box<dyn Error>>;
    fn from_seed_and_derivation_path(
        seed: &[u8],
        derivation_path: Option<DerivationPath>
    ) -> Result<Self, Box<dyn Error>>;
    fn from_seed_phrase_and_passphrase(
        seed_phrase: &str,
        passphrase: &str
    ) -> Result<Self, Box<dyn Error>>;
}
Expand description

The SeedDerivable trait defines the interface by which cryptographic keys/keypairs are derived from byte seeds, derivation paths, and passphrases.

Required Methods§

source

fn from_seed(seed: &[u8]) -> Result<Self, Box<dyn Error>>

source

fn from_seed_and_derivation_path( seed: &[u8], derivation_path: Option<DerivationPath> ) -> Result<Self, Box<dyn Error>>

source

fn from_seed_phrase_and_passphrase( seed_phrase: &str, passphrase: &str ) -> Result<Self, Box<dyn Error>>

Object Safety§

This trait is not object safe.

Implementors§