Skip to main content

compact_xpub_bytes

Function compact_xpub_bytes 

Source
pub fn compact_xpub_bytes(
    parent_fingerprint: [u8; 4],
    chain_code: [u8; 32],
    public_key: [u8; 33],
) -> [u8; 69]
Expand description

Assemble the DIP-15 compact extended-public-key plaintext from its three components. Thin wrapper over CompactXpub::to_bytes kept for call sites that have the components loose rather than in a struct.