Skip to main content

COMPACT_XPUB_LEN

Constant COMPACT_XPUB_LEN 

Source
pub const COMPACT_XPUB_LEN: usize = 69;
Expand description

Length of the DIP-15 compact extended-public-key plaintext, in bytes.

parentFingerprint(4) ‖ chainCode(32) ‖ publicKey(33) = 69 bytes. This is the plaintext layout DIP-15 specifies for encryptedPublicKey and the form both reference clients (iOS dash-shared-core, Android dashj) emit and hard-check on receive. Encrypting exactly 69 bytes yields a 96-byte ciphertext (16-byte IV + 80-byte AES-256-CBC/PKCS7 block), matching the deployed contract’s minItems/maxItems: 96.