Since segregated witness (BIP 141), the data that unlocks a Bitcoin output can sit in a separate witness structure that the transaction id does not cover; Bitcoin Core stores it with each input as scriptWitness, beside the older scriptSig.
Sources and checks
T1BIP 141, Segregated Witness (Consensus layer)BIP, says this directly
A new data structure, <code>witness</code>, is defined. Each transaction will have 2 IDs.
Specification, Transaction ID, read 2026-11-20
T1BIP 141, Segregated Witness (Consensus layer)BIP, says this directly
Definition of <code>txid</code> remains unchanged: the double SHA256 of the traditional serialization format:
Specification, Transaction ID, read 2026-11-20
T1Bitcoin Core src/primitives/transaction.h, CTxInSource code, says this directly
CScriptWitness scriptWitness;
class CTxIn, members, read 2026-11-20
bitcoin/bitcoin at f498a5a671 contains this text in src/primitives/transaction.h, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/primitives/transaction.h | grep -nF 'CScriptWitness scriptWitness;'Checked at block 976,842, 21 Nov 2026, 04:28 UTC: recheck, quotes 3/3, code 1/1
History
Nothing is edited silently; every revision keeps what it replaced.
- 20 Nov 2026, 16:42 UTCblock 976,753
Published Revision 1, run 2026-11-20-seed-utxo-model