user81767: I'm trying to hash transactions to get the txid. I get the hex values from blockchain.info. I get the correct hash for all transactions except for the coinbase when I hash it twice. Is there something different about how the coinbase transaction is supposed to be hashed?
The block I have tried is: https://blockchain.info/no/block/0000000000000000000870497004514bd3807cdc98b9f3a57038faf5df04144f.

The txid of the coinbase is supposed to be:  
44763fed906f1a0e8b82e7497ac83856baa4b1c5621affdce04108a212018c4e
But I get:  
6e129e567970540b2812ec58388d131c3b8fdbf4e4c992d140e255895df2992e

user48884: The txid is the hash of transaction without segwit data. The full coinbase transaction contains the segwit data which will result in the hash that you got. However that is not the txid.

user4334: The hash you created is the wtxid (hash of Witness ID), not the txid (hash of Transaction ID):

For the difference between  txid and wtxid, see Mastering Bitcoin ch. 7 § "Transaction identifiers".

81767: <p>I'm trying to hash transactions to get the txid. I get the hex values from blockchain.info. I get the correct hash for all transactions except for the coinbase when I hash it twice. Is there something different about how the coinbase transaction is supposed to be hashed?</p>

<p>The block I have tried is: <a href="https://blockchain.info/no/block/0000000000000000000870497004514bd3807cdc98b9f3a57038faf5df04144f" rel="nofollow noreferrer">https://blockchain.info/no/block/0000000000000000000870497004514bd3807cdc98b9f3a57038faf5df04144f</a>.</p>

<p><br/>
The txid of the coinbase is supposed to be:  <br/>
44763fed906f1a0e8b82e7497ac83856baa4b1c5621affdce04108a212018c4e</p>

<p>But I get:  <br/>
6e129e567970540b2812ec58388d131c3b8fdbf4e4c992d140e255895df2992e</p>
 48884: <p>The txid is the hash of transaction without segwit data. The full coinbase transaction contains the segwit data which will result in the hash that you got. However that is not the txid.</p>
 4334: <p>The hash you created is the <code>wtxid</code> (hash of Witness ID), not the <code>txid</code> (hash of Transaction ID):</p>

<p><a href="https://github.com/bitcoin/bips/blob/master/bip-0144.mediawiki#hashes" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j7PRJ.png" alt="Transaction ID vs. Witness ID"></a></p>

<p>For the difference between  <code>txid</code> and <code>wtxid</code>, see <a href="https://github.com/bitcoinbook/bitcoinbook/blob/362f0b340f6b10b4dcac82a06062ca92528fe7df/ch07.asciidoc#transaction-identifiers" rel="nofollow noreferrer"><em>Mastering Bitcoin</em> ch. 7 § "Transaction identifiers"</a>.</p>
