Expand description
Identity computation per spec §8.
Structs§
- Md1Encoding
Id - 128-bit canonical identifier for an md1 encoding (spec §8).
- Wallet
Descriptor Template Id - 128-bit BIP 388 wallet-descriptor-template identifier (spec §8.1, γ-flavor).
- Wallet
Policy Id - 128-bit canonical wallet-policy identifier (spec v0.13 §5.3).
Functions§
- compute_
md1_ encoding_ id - Compute the
Md1EncodingIdfor a descriptor by hashing its canonical bit-packed payload encoding (spec §8). - compute_
wallet_ descriptor_ template_ id - Compute the
WalletDescriptorTemplateIdfor a descriptor by hashing only the BIP 388 template content per spec §8.1. - compute_
wallet_ policy_ id - Compute the
WalletPolicyIdfor a descriptor by hashing its canonical-expanded wallet-policy preimage per spec v0.13 §5.3. - validate_
presence_ byte - Validate a
presence_bytefrom aWalletPolicyIdcanonical-record preimage (spec v0.13 §5.3). Bit 0 =fp_present, bit 1 =xpub_present, bits 2..7 reserved (must be 0). ReturnsError::InvalidPresenceBytewith the offending reserved-bit field if any of bits 2..7 is set.