Qaynaq LABS · TOOLS

CRYPTO GLOSSARY

BIP-141 (SegWit)

BIP-141 is a Bitcoin Improvement Proposal that introduced Segregated Witness (SegWit), a protocol upgrade separating transaction signatures (witness data) from the main transaction data to increase block capacity and fix transaction malleability.

Technical definition

BIP-141 (Segregated Witness) is a soft fork upgrade to the Bitcoin protocol that restructures blocks by moving the digital signatures (witness data) from the main transaction data into a separate 'witness' field. This change increases the effective block size limit by counting witness data as only a quarter of its original weight, allowing more transactions to fit in a block without changing the 1MB block size limit. Additionally, SegWit fixes transaction malleability—a vulnerability where a transaction's ID could be altered before confirmation—by separating the part of the transaction that affects its ID (the witness) from the part that doesn't. The upgrade also enables future upgrades like the Lightning Network by providing a more flexible scripting system.

An analogy

Imagine a delivery truck (Bitcoin block) that can only carry 100 boxes (transactions). Each box has a label (signature) that takes up space. SegWit is like removing the labels from the boxes and putting them in a separate compartment in the truck. This frees up space in the main compartment, allowing more boxes to be loaded without changing the truck's size. The labels are still part of the delivery, but they no longer take up room in the main cargo area.

Why it matters

SegWit was introduced to address Bitcoin's scalability issues by increasing transaction throughput without a hard fork, while also fixing a critical security flaw (transaction malleability) that had hindered the development of second-layer solutions like the Lightning Network.

Where it came from

BIP-141 was proposed by Bitcoin Core developer Pieter Wuille in 2015 and activated on the Bitcoin network on August 24, 2017, following a period of community debate and signaling by miners.

Example in practice

A Bitcoin transaction using SegWit might have a traditional input/output structure but include a separate 'witness' field containing the signatures. For example, a transaction sending 0.01 BTC from Alice to Bob would include Alice's signature in the witness field, allowing the transaction to be smaller and more efficiently processed while still being fully valid.

Common misconceptions

  • SegWit increases the block size limit to 2MB → Correction: SegWit increases the *effective* block size limit by about 1.7x (to ~1.7MB) by optimizing how data is counted, but the *hard* block size limit remains 1MB.
  • SegWit makes transactions faster → Correction: SegWit primarily increases transaction capacity and reduces fees by allowing more transactions per block; it does not directly speed up transaction confirmation times, which depend on network demand and miner selection.
  • SegWit is a hard fork → Correction: SegWit is a soft fork, meaning it is backward-compatible and does not require all nodes to upgrade to remain part of the network.

Risks & limitations

  • Soft fork activation risks: If not enough miners and nodes upgrade, the network could split, leading to temporary chain splits or double-spending risks.
  • Transaction fee complexity: SegWit transactions can have lower fees, but wallets and services must properly implement SegWit to realize these benefits, leading to potential user confusion or errors.
  • Backward compatibility issues: Non-upgraded nodes may misinterpret SegWit transactions, though the risk is mitigated by the soft fork design.
  • Limited scalability improvement: While SegWit increases capacity, it does not fully solve Bitcoin's scalability challenges, which require additional solutions like the Lightning Network or further protocol upgrades.

Related terms

About "BIP-141 (SegWit)" in crypto

Cryptocurrency vocabulary moves faster than any other technical field. New terms appear weekly, old terms quietly change meaning, and most "definitions" online were written by someone trying to sell you something. Qaynaq Labs' crypto glossary aims for the opposite: neutral, accurate, skeptical explainers that include the downside.

This entry covers the technical mechanics, a real-world analogy, where the concept came from, and what could go wrong. Pair it with the related terms to build a working mental model of how the pieces fit together.

Frequently asked

Does SegWit make Bitcoin transactions cheaper?

SegWit can reduce transaction fees by allowing more transactions to fit in a block, which may lower fees during periods of high demand. However, fees are ultimately determined by network demand and miner prioritization.

Can I still send Bitcoin to a SegWit address if I don’t use SegWit?

Yes. SegWit addresses (e.g., bc1 addresses) are backward-compatible, meaning non-SegWit wallets can still send Bitcoin to them. The recipient wallet will handle the SegWit transaction appropriately.

Does SegWit improve Bitcoin’s security?

SegWit improves security by fixing transaction malleability, which had previously allowed attackers to alter transaction IDs before confirmation. This makes second-layer solutions like the Lightning Network more secure.

Why didn’t Bitcoin just increase the block size limit instead of using SegWit?

Increasing the block size limit would have required a hard fork, which is contentious due to risks of network splits and requires near-universal node adoption. SegWit was a safer, backward-compatible alternative that achieved similar scalability benefits without a hard fork.