derive

Type Alias VarIntArray

Source
pub type VarIntArray<T, const MIN_LEN: usize = 0> = Confined<Vec<T>, MIN_LEN, bc::::coding::VarIntArray::{constant#1}>;
Expand description

Bitcoin consensus allows arrays which length is encoded as VarInt to grow up to 64-bit values. However, at the same time no consensus rule allows any block data structure to exceed 2^32 bytes (4GB), and any change to that rule will be a hardfork. So for practical reasons we are safe to restrict the maximum size here with just 32 bits.

Aliased Typeยง

struct VarIntArray<T, const MIN_LEN: usize = 0>(/* private fields */);