What's in a Bitcoin Cash transaction Something we've always wanted to draw. How does a Bitcoin Cash transaction look like inside. Mostly useful for people going to develop and work on the protocol. Bitcoin Cash Transaction inside
A note on `lock_time` : 0 - Not locked < 500000000 - Block number at which this transaction is unlocked >= 500000000 - UNIX timestamp at which this transaction is unlocked If all transaction inputs have final (0xffffffff) sequence numbers then lock_time is irrelevant. What is a "varint" - a compact representation of a number: >= 0 && <= 252 1 byte: uint8_t >= 253 && <= 0xffff 3 bytes: 0xfd followed by the number as uint16_t >= 0x10000 && <= 0xffffffff 5 bytes: 0xfe followed by the number as uint32_t >= 0x100000000 && <= 0xffffffffffffffff 9 bytes: 0xff followed by the number as uint64_t Transaction ID
Take `sha256` of the bytes making a transaction twice and then reverse the byte order. Source. https://bitcoin.stackexchange.com/questions/2177/how-to-calculate-a-hash-of-a-tx More information: https://www.bitcoincash.org/spec/transaction.html https://en.bitcoin.it/wiki/Protocol_documentation#tx
No comments yet