OurBigBook About$ Donate
 Sign in+ Sign up
by Ciro Santilli (@cirosantilli, 37)

Bitcoin protocol data type

 ... Money Blockchain Cryptocurrency List of cryptocurrencies Bitcoin Bitcoin protocol
 0 By others on same topic  0 Discussions  Updated 2025-05-23  +Created 1970-01-01  See my version
  • Table of contents
    • Bitcoin varint Bitcoin protocol data type

Bitcoin varint

 0  0 
Bitcoin protocol data type
en.bitcoin.it/wiki/Protocol_documentation#Variable_length_integer
Implementations:
  • Python: github.com/alecalve/python-bitcoin-blockchain-parser/blob/c06f420995b345c9a193c8be6e0916eb70335863/blockchain_parser/utils.py#L41. Sample usage to extract 3 values from a bytes object:
    file, off = decode_varint(value)
    blk_off, off = decode_varint(value[off:])
    tx_off, off = decode_varint(value[off:])

 Ancestors (10)

  1. Bitcoin protocol
  2. Bitcoin
  3. List of cryptocurrencies
  4. Cryptocurrency
  5. Blockchain
  6. Money
  7. Social technology
  8. Area of technology
  9. Technology
  10.  Home

 View article source

 Discussion (0)

+ New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic + Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook