Segregated Witness (SegWit) is the Bitcoin soft fork that introduced a separate witness serialization, a witness-aware transaction identifier, block weight, versioned witness programs, and a witness commitment anchored through the coinbase transaction. Its mainnet consensus rules became active at block 481,824 on 24 August 2017.
The idea
Pieter Wuille presented “Segregated witness and its impact on scalability” at the Scaling Bitcoin Hong Kong workshop on 7 December 2015. In the contemporary transcript he separated transaction effects from the signatures that prove authorization, described a soft-fork route for moving those signatures into a new witness structure, and proposed discounting witness bytes in the block resource calculation. Scaling Bitcoin transcript — contemporary first-party presentation
BIP 141, by Eric Lombrozo, Johnson Lau, and Pieter Wuille, was assigned on 21 December 2015. It defines the witness structure and consensus-layer changes. BIP 141 — standards record
What changed
txid and wtxid
BIP 141 keeps the legacy txid definition over the non-witness serialization and adds a wtxid over a serialization that includes witness data. For a transaction with no witness programs, the two identifiers are equal. BIP 141 — standards record
This addresses unwanted third-party transaction malleability for spends using SegWit correctly. The protection requires all inputs to be SegWit spends; a transaction mixing legacy and witness inputs can retain the old vulnerability. It is narrower than saying a transaction can never be changed: participant-authorized changes and sighash choices remain separate questions. A different, witness-inclusive wtxid can also result from changes to valid witness data, without changing the txid. Bitcoin Core — 2016 explanation and mixed-input qualification
Earlier attempts and the NULLDUMMY rule
Transaction malleability reconstructs the preceding proposals: BIP 62 catalogued alternative script and ECDSA signature encodings in 2014 but was not deployed as a package; BIP 66 imposed strict DER signature encoding in 2015. BIP 147's NULLDUMMY rule then activated alongside SegWit in August 2017, requiring the extra element consumed by OP_CHECKMULTISIG to be empty in both legacy and witness scripts. BIP 146's broader LOW_S/NULLFAIL proposal was closed without deployment as that BIP. These are different histories of consensus enforcement, not proof that every source of malleability vanished from every older script. BIP 66 · BIP 147 · BIP 146 — closed proposal
Witness programs
SegWit gives a scriptPubKey or P2SH redeem script a new meaning when it is a version byte followed by a 2-to-40-byte program. Version 0 defines P2WPKH and P2WSH. Versions 1 through 16 were deliberately left without further interpretation so later soft forks could assign new rules to them. BIP 141 — standards record
That reserved-version design became important later. Taproot uses witness version 1 rather than inventing an unrelated transaction family.
Block weight
SegWit replaced the old one-number block-size rule with a 4,000,000 weight-unit limit. BIP 141 defines block weight as:
base size × 3 + total size
Because total size already contains the base bytes once, non-witness bytes effectively count four weight units each while witness bytes count one. BIP 141 — standards record
This is the “witness discount.” It is not free storage. Witness data still consumes block weight and remains subject to Bitcoin's active consensus and script rules.
Witness commitment
A block containing witness data commits to its witness-inclusive transaction identifiers through a second Merkle root. BIP 141 places the resulting witness commitment in an OP_RETURN output of the coinbase transaction. The commitment is SHA256d(witness root || 32-byte reserved value); the coinbase's witness-tree leaf is zeroed to avoid a self-reference. When multiple outputs match the 6a24aa21a9ed marker, the highest-index match is authoritative. BIP 141 — commitment structure
This is the soft-fork trick in concrete form: upgraded nodes enforce a new witness commitment while the legacy block header format remains unchanged. A txid inclusion proof alone cannot authenticate a Taproot inscription reveal's witness. The archive's 0.bitmap proof provides a block-specific example of both paths; Witness commitment gives the byte-level rules and their verification limits.
New signature digest for witness v0
BIP 143 defines the signature-hash algorithm used by version 0 witness programs. Among other changes, it commits to the value of the output being spent and permits reusable intermediate hashes that avoid the older quadratic hashing pattern for large transactions. BIP 143 — standards record
SegWit is therefore not merely a relocation of signatures. It also creates a versioned execution surface where new signature semantics can be introduced for users who opt into new output types.
Deployment and activation
Bitcoin Core 0.13.1 was released on 27 October 2016 with the mainnet activation parameters for SegWit. Its release notes describe BIP 9 signaling on bit 1, with a 95% threshold over a 2,016-block retarget period and a further retarget period between lock-in and activation. Bitcoin Core 0.13.1 — contemporary first-party release · BIP 9 — standards record
The eventual 2017 activation path had additional machinery around that original deployment.
- BIP 148, assigned 12 March 2017, specified that participating nodes would reject non-SegWit-signaling blocks from 1 August while the existing SegWit deployment remained neither locked in nor active. BIP 148 — standards record
- BIP 91, assigned 22 May 2017, specified a lower-threshold signaling deployment whose active state required blocks to signal the existing SegWit bit. Its stated purpose was to cause the original BIP 9 SegWit deployment to reach activation without redefining SegWit itself. BIP 91 — standards record
- Contemporary reporting records BIP 141 locking in on 9 August 2017 after the signaling threshold had become inevitable the day before. Contemporary secondary chronology
- SegWit's rules became active from block 481,824 on 24 August 2017. Current Bitcoin Core preserves
481824as mainnetSegwitHeight; a contemporary activation report records the civil-date milestone. Bitcoin Core chain parameters — primary software record · Contemporary activation report
The archive keeps causation modest here. BIP 91 and BIP 148 are direct records of different attempts to force or coordinate signaling around the already-deployed BIP 141 rules. The fact that SegWit ultimately activated through the original BIP 9 state machine should not be rewritten into a claim that the surrounding activation conflict was irrelevant.
The proposed SegWit2x hard fork was separate
SegWit2x (the New York Agreement) paired support for this existing SegWit deployment with a promised, incompatible 2 MB base-block hard fork. The first part succeeded; the additional size increase was suspended on 8 November 2017 and never became the rules of this chain. The original May 2017 agreement circulated in more than one wording, and the project eventually targeted block 494,784 for its proposed hard fork. Digital Currency Group, 23 May 2017 — first-party agreement · SegWit2x project announcement
There is an unusually tangible sign of that unfinished second plan in the first SegWit block itself: BTCC's coinbase carries /BTCC/ Support /NYA/. The miner's message identifies support for the agreement; it does not make the proposed hard fork a consensus rule. Chain-derived block record
The activation block contained two different kinds of “first”
Block 481,824 did not merely switch the consensus rules on. It already contains spends that exercise them.
A chain-wide BlockSci study published in 2018 identified five P2SH-P2WPKH spends in block 481,824, plus the first native P2WPKH and P2WSH outputs. This is later scholarly analysis of blockchain data, rather than a 2017 participant account. Pérez-Solà, Delgado-Segura, Herrera-Joancomartí and Navarro-Arribas, “Analysis of the SegWit adoption in Bitcoin”, section IV — later chain analysis
That produces two useful firsts which should not be collapsed:
8f907925d2ebe48765103e6845c06f1f2bb77c6adc1cc002865865eb5cfd5c1cis the earliest presently identified wrapped SegWit spend. Its input spends an older P2SH output, then reveals00149445e8b825f1a17d5e091948545c90654096db68in the scriptSig and supplies the signature and public key in the witness. The transaction also carries the contemporaryOP_RETURNmessage “BIP141 … Hello SegWit”. Chain-derived transaction record · Bitcoin.pl, 24 August 2017 — contemporary reporting naming this transaction as the firstdfcec48bb8491856c353306ab5febeb7e99e4d783eedf3de98f3ee0812b92bad:0is a native P2WPKH output created in the same activation block. Its scriptPubKey is00148d7a0a3461e3891723e5fdf8129caa0075060cff. Chain-derived transaction recordf91d0a8a78462bc59398f2c5d7a84fcff491c26ba54c4833478b202796c8aafdspends that exact outpoint, again in block 481,824. Its scriptSig is empty and input 0 carries the P2WPKH witness. This is the earliest native SegWit-output spend presently pinned by BOMB; independently rechecking all transactions in activation-block order remains a worthwhile reproducibility test. It then creates two more P2WPKH outputs and announces “Bitbank Inc. Japan supports SegWit!” in anOP_RETURN. Chain-derived transaction record
Software support was not the same as consensus activation
Activation meant upgraded nodes began enforcing the new rules. It did not mean every wallet immediately created native SegWit outputs.
Bitcoin Core 0.16.0 later described itself as introducing full SegWit support in the wallet and user interfaces, including address-type selection and Bech32 support. Bitcoin Core 0.16.0 release notes — first-party software record
Consensus availability, node deployment, wallet creation support, and actual transaction usage therefore belong on different historical clocks.
Why Ordinals cares
Inscriptions do not use SegWit version 0. Their reveal transactions use Taproot script-path spends, and Taproot is a later witness-version upgrade.
The dependency chain is nevertheless real:
- SegWit introduced the witness serialization and versioned witness-program framework.
- Taproot assigned new meaning to witness version 1 and introduced Tapscript/script-path spending.
- Ordinals inscriptions place their envelope and body inside that Taproot reveal witness.
- Those witness bytes consume Bitcoin block weight at witness weight rather than non-witness weight.
The weight distinction is economically important to inscription practice, but it should not become “Ordinals exploit free space.” An inscription reveal pays fees for a transaction whose witness bytes consume block weight under exactly the resource rule SegWit introduced.
Related pages
Open research
Reproduce the SegWit activation-block chronology directly from the full ordered transaction list and witness serialization at block 481,824, confirming the order of the five wrapped spends, the creation of native witness outputs and the first native-output spend. Compare the result to the 2018 BlockSci study and the contemporary 2017 reporting.
Build an adoption timeline that separates consensus activation, node support, P2SH-wrapped SegWit, native Bech32 wallet support, and real transaction share instead of using “SegWit adoption” as one number.
Preserve the most consequential primary activation discussions around BIP 148, BIP 91, and SegWit2x without allowing later political retellings to overwrite what each proposal actually specified at the time.