solana_sdk::signer::keypair

Function keypair_from_seed_and_derivation_path

Source
pub fn keypair_from_seed_and_derivation_path(
    seed: &[u8],
    derivation_path: Option<DerivationPath>,
) -> Result<Keypair, Box<dyn Error>>
Expand description

Generates a Keypair using Bip32 Hierarchical Derivation if derivation-path is provided; otherwise generates the base Bip44 Solana keypair from the seed