SegWit (Segregated Witness)
SegWit was a 2017 upgrade that moved signatures into a separate part of the transaction. It fixed a long-standing bug, made room for more transactions and opened the door to the Lightning Network.
Short definition
Protocol upgrades (2017 / 2021) that made transactions cheaper and more flexible.
What changed
Signatures (the “witness”) moved out of the part of the transaction that is hashed into its ID. This fixed transaction malleability: a third party could no longer change a transaction's ID before confirmation, which chains of unconfirmed transactions such as Lightning channels depend on.
Block size became block weight: up to 4,000,000 weight units, with witness bytes counted at a quarter. Old nodes still see valid blocks under 1 MB, so the change was backward-compatible (a soft fork). BIP 143 also fixed quadratic signature hashing, and BIP 173 introduced bech32 addresses starting with bc1q.
Activation
Activation was contested during the 2015–2017 block-size debate. SegWit locked in during August 2017 and activated at block 481,824 on 24 August 2017. A group that wanted bigger blocks instead split off on 1 August 2017 as Bitcoin Cash.
From the Bitcoin Museum
SegWit activates (block 481,824) (24 Aug 2017): Segregated Witness, a soft fork, activates. It fixes transaction malleability and opens the way to Lightning.
See also
- TaprootTaproot is a 2021 upgrade that added Schnorr signatures and a way to hide unused spending conditions. Complex wallets, such as multisig, can look like ordinary single-key payments.
- BlockA block is a batch of Bitcoin transactions added to the chain about every ten minutes. The miner who finds it collects the new coins and the fees.
- Lightning NetworkLightning is a payment network built on top of Bitcoin. Two parties lock bitcoin in a shared channel and then pay each other instantly and cheaply off-chain; payments can hop across channels to reach anyone.
- BIP (Bitcoin Improvement Proposal)A BIP is a public design document that proposes a change or a standard for Bitcoin. Writing a BIP does not change Bitcoin; node operators decide by running software that implements it.
- Bitcoin Cash splits off1 Aug 2017: A hard fork creates Bitcoin Cash with bigger blocks; Bitcoin keeps its rules.
References
- BIP 141 (github.com/bitcoin/bips) github.com
- BIP 143 (github.com/bitcoin/bips) github.com
- BIP 144 (github.com/bitcoin/bips) github.com
- BIP 173 (github.com/bitcoin/bips) github.com
- Block 481,824 on mempool.space mempool.space