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

Bitcoin varint

 ... Blockchain Cryptocurrency List of cryptocurrencies Bitcoin Bitcoin protocol Bitcoin protocol data type
 0 By others on same topic  0 Discussions  Updated 2025-05-26  +Created 1970-01-01  See my version
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 (11)

  1. Bitcoin protocol data type
  2. Bitcoin protocol
  3. Bitcoin
  4. List of cryptocurrencies
  5. Cryptocurrency
  6. Blockchain
  7. Money
  8. Social technology
  9. Area of technology
  10. Technology
  11.  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