Skip to main content

Module bip152

Module bip152 

Source
Expand description

BIP152 high-level compact block types (wire / serde).

Short-id hashing lives here so protocol reconstruction and the node use one rule. Conversions to/from crate::network::CmpctBlockMessage live in network.rs.

Structs§

CompactBlock
Compact block representation (header + short IDs + prefilled txs).

Functions§

short_tx_id
BIP152 short id: SipHash-2-4 of the wtxid, keyed by SHA256(header || nonce).
siphash24
SipHash-2-4. BIP152 short ids use the low 6 bytes of this digest.

Type Aliases§

ShortTxId
Short transaction ID (6 bytes / 48 bits) per BIP152.