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.

1 Answer 1

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.

3
  • > 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? Commented Oct 24, 2022 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
    Commented Oct 24, 2022 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
    Commented Oct 25, 2022 at 0:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.