Module key_derive

Source

Constants§

DERIVATION_PATH_COIN_TYPE
DERVIATION_PATH_PURPOSE_ED25519
DERVIATION_PATH_PURPOSE_SECP256K1
DERVIATION_PATH_PURPOSE_SECP256R1

Functions§

derive_key_pair_from_path
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.
generate_new_key
validate_path