pub fn keypair_from_seed_and_derivation_path(
    seed: &[u8],
    derivation_path: Option<DerivationPath>,
) -> Result<Keypair, Box<dyn error::Error>> {
    let derivation_path = derivation_path.unwrap_or_default();
    bip32_derived_keypair(seed, derivation_path).map_err(|err| err.to_string().into())
}
/// Generates a Keypair using Bip32 Hierarchical Derivation if derivation-path is provided;
/// otherwise generates the base Bip44 Solana keypair from the seed
Generates a Keypair using Bip32 Hierarchical Derivation if derivation-path is provided;
otherwise generates the base Bip44 Solana keypair from the seed
Generates a Keypair using Bip32 Hierarchical Derivation if derivation - path is provided ; otherwise generates the base Bip44 Solana keypair from the seed
pub fn keypair_from_seed_and_derivation_path(
    seed: &[u8],
    derivation_path: Option<DerivationPath>,
) -> Result<Keypair, Box<dyn error::Error>> {
    let derivation_path = derivation_path.unwrap_or_default();
    bip32_derived_keypair(seed, derivation_path).map_err(|err| err.to_string().into())
}
pub fn keypair_from_seed_and_derivation_path ( seed : & [ u8 ] , derivation_path : Option < DerivationPath > , ) -> Result < Keypair , Box < dyn error :: Error > > { let derivation_path = derivation_path . unwrap_or_default ( ) ; bip32_derived_keypair ( seed , derivation_path ) . map_err ( | err | err . to_string ( ) . into ( ) ) }
Generates a Keypair using Bip32 Hierarchical Derivation if derivation-path is provided;
otherwise generates the base Bip44 Solana keypair from the seed
Generates a Keypair using Bip32 Hierarchical Derivation if derivation - path is provided ; otherwise generates the base Bip44 Solana keypair from the seed
seed
&[u8]
derivation_path
Option<DerivationPath>