SegWit (Segregated Witness)
The upgrade that moved signatures out of the main block data, fixing malleability and adding capacity.
Basically
An upgrade that tidied up where signatures are stored. It fixed a bug, made room for more transactions, and made Lightning possible.
Key Takeaways
- SegWit moved signature data out of the main transaction body, fixing malleability and adding block capacity.
- It made Lightning practical and paved the way for Taproot.
- Legacy, wrapped and native addresses all still work; native SegWit is simply cheaper.
The problem it solved
Before SegWit, a transaction's identifier included its signatures. Since signatures could be tweaked slightly without invalidating them, the identifier of an unconfirmed transaction could change after broadcast — transaction malleability. Any protocol that chains unconfirmed transactions together, like payment channels, becomes fragile when the transaction it builds on can be renamed underneath it.
SegWit separated the witness — the signatures and scripts — from the transaction data, so the identifier no longer depends on signatures. It also counted witness data at a quarter weight, increasing effective capacity.
What it enabled
Lightning depends on stable transaction identifiers, so SegWit is effectively a prerequisite for it. Cheaper multisig followed the same discount, since multisig carries lots of witness data.
In addresses
SegWit introduced bech32 addresses starting with bc1q. Old-style addresses still work, and exchanges that still send from legacy inputs pay higher fees for it. There is nothing left to "upgrade to" — SegWit has been part of consensus since 2017.