Type Alias derive::VarIntArray

source ·
pub type VarIntArray<T> = Confined<Vec<T>, 0, 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>(/* private fields */);