Author

Topic: Why did not transactions precede a length specification? (Read 179 times)

newbie
Activity: 17
Merit: 0
Well to know well your transaction specification, I know such services are really useful. Use it sometimes. I used https://bitcoin.org

Give it a try
full member
Activity: 161
Merit: 168
Ok, I could have come up with that myself.
Many thanks  Smiley
staff
Activity: 3374
Merit: 6530
Just writing some code
Transactions are self descriptive in length. Any field that is variable length contains its length, All other fields are fixed length and a parser knows this. So transactions don't need length prefixes because a parse will know when a transaction ends, and the next bytes are the beginning of the next transaction.
full member
Activity: 161
Merit: 168
Raw transactions in the blocks do not have any preceding lengths in the first bytes. Why?
How are the transactions within a block best parsed without the length specification within the transaction?
Jump to: