delcin-raj / rust_realm

13 stars 11 forks source link

Transactions sent in raw binary format #4

Open sb1752 opened 3 weeks ago

sb1752 commented 3 weeks ago

This is in regards to the hex bytes tutorial

I'm not 100% sure as I haven't checked the source code, but based on the developer documentation from bitcoin.org, bitcoin transactions are shared between peers in binary format.

"Bitcoin transactions are broadcast between peers in a serialized byte format, called raw format"

The Raw transaction is defined as follows: "Complete transactions in their binary format; often represented using hexadecimal. Sometimes called raw format because of the various Bitcoin Core commands with “raw” in their names."

delcin-raj commented 3 weeks ago

Binary formats represented using hexadecimal means I believe what I've written is correct, let me confirm it with Raj once.

sb1752 commented 3 weeks ago

Ok. My confusion is whether the data is actually passed as hex strings between nodes or is just binary data, and represented as hex for programming purposes.