Skip to main content

read_compact_size

Function read_compact_size 

Source
pub fn read_compact_size(
    data: &[u8],
    offset: &mut usize,
) -> Result<u64, SignerError>
Expand description

Read a Bitcoin compact-size integer from a byte slice at the given offset.

Advances offset past the consumed bytes.