The encoding of bitcoin transactions starts with a "version" byte. What do you think it's for?
Post by twetch#200
That's a good question! I'm not sure, so I could only speculate!
What the chain says
- Block
- 658 708
- Time
- 2020-10-27T16:24:45Z
- Signer
- 1JhKv5bs1wpHRYFAQS4qF5zhKfAnXAy2UL
- App
- twetch
- Type
- post
- Content type
- text/plain
- Name in tx
- twetch#200
Fields the transaction did not carry are omitted. Open the payload to see the bytes as stored.
Signed by
1JhKv5bs1wpHRYFAQS4qF5zhKfAnXAy2UL VerifiedReplies (2)
Typically version bytes are used for forward-compatibility when new versions of something are added :]
Makes sense. Basically a tag to keep nodes or on-lookers informed. I never noticed that in the bitcoin code before, though. Or just ignored it as I glanced.
Will do some detective work!