Protocol & Consensus • Estimated 25m

CompactSize Encoding

protocol.compact-size-encoding

CompactSize is Bitcoin's variable-length integer encoding for counts and byte lengths in serialized protocol data. Understanding its prefixes is necessary for parsing transaction, block, script, and network messages correctly.

Curated resources (3)

Direct prerequisites (1)

Direct dependents (0)

Canonical site description: Interactive Bitcoin knowledge graph with prerequisites, curated resources, and structured topic pages.