BIP 141
Segregated Witness (Consensus layer)
- Status
- Deployed
- Type / Layer
- Specification / Consensus (soft fork)
- Authors
- Eric Lombrozo, Johnson Lau, Pieter Wuille
- Assigned
- Status verified
- (next check by 2027-02-01)
- Source
- github.com/bitcoin/bips/blob/master/bip-0141.mediawiki
Text updated:
Summary
A soft fork that moves signature data into a new structure called the witness, committed to the block separately from the transaction merkle tree. The starting observation is that a transaction's effects are determined by which outputs it consumes and creates; signatures are needed only to validate state, not to determine it. When every input uses a SegWit form that requires a signature, excluding witness data from txid prevents a third party from changing the identifier without the signers' cooperation. This does not eliminate malleability for transactions with legacy inputs or prevent changes made by the signers themselves. The BIP argues this is superior to the canonical-signature approach of BIP62, and explicitly notes that it allows chains of unconfirmed transactions without counterparty risk arising from this malleability, an important property for off-chain protocols such as the Lightning Network. The witness commitment is nested into the existing merkle root through the coinbase transaction so the change can deploy as a soft fork, and a weight measure that discounts witness data raises effective block capacity.
Why it matters
Activated in August 2017, it is one of the largest protocol changes in Bitcoin's history. Removing malleability was a precondition for the Lightning Network, and the weight measure raised effective capacity. It works as a set together with BIP143 (signature digest), BIP144 (peer messages), and BIP173 (bech32 addresses).
Related BIPs
Related articles
This page carries a summary, not a translation. The original document is authoritative, and the metadata, including Status, was transcribed from the bips repository. Always consult the original when implementing or verifying.