Function iota_keys::key_derive::derive_key_pair_from_path

source ·
pub fn derive_key_pair_from_path(
    seed: &[u8],
    derivation_path: Option<DerivationPath>,
    key_scheme: &SignatureScheme,
) -> Result<(IotaAddress, IotaKeyPair), IotaError>
Expand description

Ed25519 follows SLIP-0010 using hardened path: m/44’/4218’/0’/0’/{index}’ Secp256k1 follows BIP-32/44 using path where the first 3 levels are hardened: m/54’/4218’/0’/0/{index} Secp256r1 follows BIP-32/44 using path where the first 3 levels are hardened: m/74’/4218’/0’/0/{index}. Note that the purpose node is used to distinguish signature schemes.