solana_sdk::signer

Trait SeedDerivable

Source
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>>

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§