|
April 10, 2013, 03:35:56 PM |
|
This is the sig script to unlock the input into the coinbase transaction. However, since the coinbase doesn't have an input, it was initially undefined. It looks like the input transaction needs to be set to 0 though.
Since BIP-34 was accepted, the start of the coinbase transaction's script is the block height, i.e. 0x03 (the length) and then the height. This was to make sure every coinbase transaction hashed to a different value, even if they paid out to the same address.
What is the rest of the coinbase script used for? Is it just random data or do miners has some system for deciding what to set it to? Why not leave it as short as possible, since that would make the transaction smaller?
|