CompactSize Unsigned Integer

This definition comes from the technical glossary.


A type of variable-length integer commonly used in the Bitcoin P2P protocol and Bitcoin serialized data structures.


  • CompactSize

Not To Be Confused With

  • VarInt (a data type Bitcoin Core uses for local data storage)

  • Compact (the data type used for nBits in the block header)