Skip to main content

commitment_blocks

Function commitment_blocks 

Source
pub fn commitment_blocks(
    pk_nonce: &Nonce,
    ends: &[[u8; 18]; 68],
) -> Vec<(Vec<u8>, u32)>
Expand description

The 1,240-byte commitment stream split into the packer’s 20 blocks.

Returns (bytes, length) per block: 19 blocks of 64 bytes and a final block of 24. This is the same split the hardware packer makes with a 16-byte prefix.