Transaction malleability: changing a payment's id before it confirms
What it is
Under BIP 141 every transaction has two identifiers: the txid, the double SHA-256 of the serialization without witness data (unchanged from before SegWit), and the wtxid, the double SHA-256 of the serialization that includes the witness.1: open 2 sources
DefinitionBuilderEstablishedMedium confidence
remains unchanged: the double SHA256 of the traditional serialization format:
Specification, Transaction ID, read 2026-11-20
Still in bip-0141.mediawiki at the head of bitcoin/bips (9f3d3bc6a6), read 26 Nov 2026.
is defined: the double SHA256 of the new serialization with witness data:
Specification, Transaction ID, read 2026-11-20
Still in bip-0141.mediawiki at the head of bitcoin/bips (9f3d3bc6a6), read 26 Nov 2026.
Checked at block 977,144, 23 Nov 2026, 04:22 UTC: recheck, quotes 2/2History, hash and citation
What defends against it
Because a SegWit transaction's signatures sit in the witness, which the txid does not cover, changing how the transaction was signed no longer changes its txid; BIP 141 states this prevents involuntary malleability for any type of script as long as all inputs are signed.2: open 2 sources
How it worksBuilderEstablishedMedium confidence
changes to how the transaction was signed are no longer relevant to transaction identification.
Motivation, read 2026-11-20
Still in bip-0141.mediawiki at the head of bitcoin/bips (9f3d3bc6a6), read 26 Nov 2026.
It prevents involuntary transaction malleability for any type of scripts, as long as all inputs are signed
Motivation, read 2026-11-20
Still in bip-0141.mediawiki at the head of bitcoin/bips (9f3d3bc6a6), read 26 Nov 2026.
Checked at block 977,144, 23 Nov 2026, 04:22 UTC: recheck, quotes 2/2History, hash and citation
What the lab tests
2 testsBitcoin Core's own tests, run on a private test network against the newest release of each major version Bitcoin Core maintains, newest first. An older release runs the tests it has. See each release's run.
| Test | Bitcoin Core 32.123 Nov 2026 | Bitcoin Core 31.323 Nov 2026 | Bitcoin Core 30.523 Nov 2026 |
|---|---|---|---|
feature_ | Passed | Passed | Passed |
p2p_ | Passed | Passed | Passed |