← New search

Other meanings of SegWit

Cryptocurrency

SegWit

SegWit (Segregated Witness) is a protocol upgrade to Bitcoin that separates transaction signatures (witness data) from the transaction data, increasing block capacity and fixing transaction malleability.

2017
Activated
Year
~4x
Capacity increase
Factor
~70%
Adoption rate
Percentage
1

Definition and Purpose

▶

SegWit, short for Segregated Witness, is a Bitcoin protocol upgrade that separates the transaction signature (witness) data from the main transaction data. This separation allows more transactions to fit into a block, effectively increasing the block size limit from 1 MB to about 4 MB (in terms of weight units).1 The primary goals were to fix transaction malleability, which was a prerequisite for second-layer solutions like the Lightning Network, and to increase transaction throughput without a hard fork.

2

Technical Implementation

▶

SegWit introduces a new transaction format where witness data is moved to a separate structure at the end of the block. This is achieved through a soft fork, meaning older nodes can still validate the new blocks, but they do not see the witness data.2 The block size is replaced by a block weight limit of 4 million weight units, where each byte of witness data counts as 1 unit and each byte of non-witness data counts as 4 units. This effectively allows up to 4 MB of witness data or 1 MB of non-witness data, or a combination.1

3

Activation and Adoption

▶

SegWit was activated on the Bitcoin network on August 24, 2017, at block 481,824, after a prolonged debate and the implementation of BIP 91 and BIP 148. Adoption was gradual, with major exchanges and wallets integrating support over time. By 2021, over 70% of transactions were using SegWit addresses.3 The upgrade also paved the way for the Lightning Network, which relies on SegWit to prevent transaction malleability attacks.

4

Impact and Controversies

▶

SegWit increased Bitcoin's transaction capacity and reduced fees during peak times, but it also sparked controversy. Some community members opposed it, leading to the creation of Bitcoin Cash, a hard fork that increased the block size to 8 MB without SegWit.4 Additionally, SegWit introduced a discount for witness data, which some argued was a subsidy for certain types of transactions. Despite this, SegWit is widely considered a successful upgrade that enabled further innovations.1

5

Lesser-known aspects

▶

SegWit also introduced a new address format, Bech32 (native SegWit), which is case-insensitive and more error-resistant, but not all wallets support it.5 Another lesser-known fact is that SegWit was initially proposed by Pieter Wuille in December 2015, and it also fixed a bug in the Bitcoin script language that allowed for more complex smart contracts. Furthermore, SegWit's design allows for future upgrades like Taproot, which was activated in 2021, to build on its structure.1

≡

Glossary

▶
Witness data
The signature and script data that prove ownership of bitcoins.
Soft fork
A backward-compatible upgrade where old nodes still accept new blocks.
Block weight
A unit measuring block size, with witness data weighted less than non-witness data.
Transaction malleability
A vulnerability where transaction IDs can be altered before confirmation.

SegWit remains a foundational upgrade for Bitcoin's scalability and smart contract capabilities.