0

What serialization format is used in bitcoin network? I know in Ethereum, there is the RLP which has been replaced with SSZ. Polkadot has it's own serialization format called SCALE, but I have not been able to find information on what serialization format is used in Bitcoin.

Finlay Weber
  • 123
  • 3

1 Answers1

3

Bitcoin uses different serialization formats for different data structures, as described on https://en.bitcoin.it/wiki/Protocol_documentation.

See also In what format does a block store the transaction data? for a similar question.

stickies-v
  • 550
  • 3
  • 12
  • Bitcoin uses different serialization formats for different data structures. I see. I am mostly asking for the network serialisation format. Which format is used for this?

    – Finlay Weber Oct 24 '22 at 13:43
  • 3
    Did you look at the link I provided? It describes the Bitcoin network protocol, including the serialization for P2P messages. – stickies-v Oct 24 '22 at 14:08
  • 1
    Normally link-only answers are not preferred (they can become broken, out of date, etc), but in this case its perhaps more tenable, considering how general the question is (and thus how much info would be included in a complete answer-- eg basically copy/pasting the entire contents of the first link) – chytrik Oct 25 '22 at 00:03