Skip to main content

extract_bip_44_fields

Function extract_bip_44_fields 

Source
pub fn extract_bip_44_fields(
    derivation: &Bip32Derivation,
    seed_fp: &SeedFingerprint,
    expected_coin_type: ChildNumber,
) -> Option<(AccountId, TransparentKeyScope, NonHardenedChildIndex)>
Expand description

Extracts the BIP 44 account index, scope, and address index from a PCZT derivation path.

expected_coin_type is the hardened coin type index of the network.

Returns None if the seed fingerprints don’t match, or if this is not a BIP 44 derivation path for expected_coin_type.