Crypto glossary

SegWit (Segregated Witness)

Definition

SegWit (Segregated Witness) is a Bitcoin upgrade activated in August 2017 that moved signature data out of the transaction ID, fixing transaction malleability.

SegWit separates the witness, meaning the signatures and scripts that prove coins can be spent, from the rest of the transaction data. Because signatures no longer affect the transaction ID, third parties can no longer alter that ID before confirmation, a flaw known as transaction malleability. Witness data is also counted at a discount, replacing the 1 MB block size limit with a weight limit.

SegWit activated as a soft fork in August 2017 after a long dispute over how to scale Bitcoin; the camp that wanted bigger blocks instead created Bitcoin Cash through a hard fork. Fixing malleability was a precondition for the Lightning Network. Native SegWit addresses begin with bc1q.

Spending from SegWit outputs lowers fees, but older address types still work, so adoption took years. The discount on witness data later made room for inscriptions after Taproot, which some users criticise for filling blocks.

Example

Sending bitcoin from a native SegWit (bc1q) address usually costs noticeably less than from an old address starting with 1, because signature data counts at a quarter of its weight.

Related terms

Latest articles on SegWit