Crate bc

Source

Re-exports§

Modules§

Structs§

Enums§

Constants§

Traits§

Type Aliases§

  • 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.