Can the coinbase transaction be used to spend an UTXO?

2

1

I know the coinbase transaction's input is usually just has a dummy scriptSig, but what if a miner used it to spend an UTXO? Would it be verified as an actual spend, or would the block be rejected?

morsecoder

Posted 2014-11-22T19:54:17.137

Reputation: 12 624

Answers

4

It would be rejected. The coinbase input must use a very specific previous outpoint: 0x0000000000000000000000000000000000000000000000000000000000000000ffffffff. This prevents it from referring to an actual previous outpoint.

David A. Harding

Posted 2014-11-22T19:54:17.137

Reputation: 10 154