What is SegWit?

von Satoshi Nakamoto

Last updated: 22 February, 2018

SegWit (short for Segregated Witness) is a protocol upgrade that changes the way data is stored. It was activated on litecoin on May 10, 2017, and on bitcoin on 23 August, 2017.

Developer Pieter Wiulle first presented the idea at the Scaling Bitcoin conference in December 2015.

Many hailed it as a long-awaited solution to bitcoin's scaling problem. The maximum block size in the main protocol is 1MB, which restricts the number of transactions bitcoin can process to approximately 7 per second. This was going to limit bitcoin's potential growth, and prevent it from becoming a usable high-volume payment system.

While the upgrade does enable a greater number of transactions in bitcoin's blocks, SegWit's initial intention was to fix a bug in the bitcoin code called transaction malleability. This flaw allowed anyone to change small details that modified the transaction id (and the subsequent hash) but not the content. While not a critical problem for bitcoin, it prevented the development of more complex features such as second-layer protocols and smart contracts.

SegWit fixed transaction malleability by removing the signature information (otherwise known as the "witness" information) and storing it outside the base transaction block. With that, signatures and scripts can be changed without affecting the transaction id.

Slimming down

A side benefit that is taking on a much greater importance is that, without the signature information, the transactions weigh much less. This means that more can fit in a block, and bitcoin can process a greater throughput without changing the block size.

SegWit introduced a new concept called "block weight." This is a mashup of the block size with and without the signature data, and is capped at 4MB, while the block size limit for the base transactions remains at 1MB. This means that the SegWit upgrade is compatible with the previous protocol, and avoids the need for a hard fork.

So, SegWit does not increase the block size limit, but it does enable a greater number of transactions within the 1MB blocks. The 4MB cap includes the segregated witness data, which technically does not form part of the 1MB base transaction block.

Building on top

Another big step forward made possible by SegWit is that it supports the development of second layer protocols, such as the lightning network. The malleability fix made any feature that relied on unconfirmed transactions less risky and easier to design.

The lightning network will further boost bitcoin's transaction capacity by taking frequent, small transactions off-chain, only settling on the bitcoin blockchain when the users are ready.

SegWit activation also boosted development work on other features such as MAST (which enables more complex bitcoin smart contracts), Schnorr signatures (which would enable another transaction capacity boost) and TumbleBit (an anonymous top-layer network).

Not everyone's happy

Not everyone in the bitcoin community agrees that SegWit is the solution bitcoin has been waiting for. Some believe that it is a case of "kicking the can down the road," and at best a temporary fix.

Resistance to SegWit was one of the factors behind the development of bitcoin cash, a fork of the bitcoin network which chose to implement a larger block size limit rather than rely on a new transaction structure.

Where are we?

In spite of the obvious advantages, the rollout of the upgrade is moving slowly. At pixel time, 14% of transactions were using the new format (you can follow the progress here).

The main reason is that many wallets have yet to add SegWit support. Some big names such as Trezor, Ledger, Electrum and Kraken have already done so. Coinbase – the largest wallet provider in terms of number of transactions – is working on it, and expects to implement the upgrade in early 2018. And the wallet attached to bitcoin's most popular full node implementation, Bitcoin Core, is expected to roll out SegWit in the first quarter of 2018.

With the main bitcoin code also making SegWit-friendly adjustments, this could lead to an uptick in both usage and additional functionality experimentation. Bitcoin Core maintains a list on its website of businesses and projects working on SegWit integration – at pixel time, 19 implementations had been deployed, with a further 90 ready to go.

As more wallets embrace the upgrade, the percentage of transactions that use the SegWit structure will increase, and bitcoin fees should drop as blocks contain a greater number of transactions. Furthermore, the development of lightning and similar second layer protocols should get more of a boost, enhancing bitcoin's scope and potential. This is unlikely to happen overnight – but the change is an important one, and represents a big step forward.

Authored by: Noelle Acheson; Image of door opening via Shutterstock. Source coindesk
NEXT: WHAT IS THE LIGHTNING NETWORK?

INDEX: A BEGINNERS GUIDE TO BITCOIN AND BLOCKCHAIN TECHNOLOGY



What is Bitcoin?
It's a decentralized digital currency


Why Use Bitcoin?
It's fast, cheap to use, and secure


How Can I Buy Bitcoin?
From an exchange or an individual


How to Buy Bitcoin in the UK
Buying bitcoin in the UK


How to Store Your Bitcoin
Use a digital or paper wallet


What Can You Buy with Bitcoin?
Spend your bitcoins


How to Sell Bitcoin
A guide on how to sell your bitcoins


How to Accept Bitcoin Payments for Your Store
Learn about bitcoin POS systems


How do Bitcoin Transactions Work?
Bitcoin addresses and private keys


Is Bitcoin Legal?
The current regulation around bitcoin


Who is Satoshi Nakamoto?
The founder of bitcoin


How Bitcoin Mining Works
By confirming transactions


How to Set Up a Bitcoin Miner
Generate bitcoins yourself


What are Bitcoin Mining Pools?
What are pools how and how to join them?


How Does Cloud Mining Bitcoin Work?
Alternative bitcoin mining solutions


How to Calculate Mining Profitability
Can you make a ROI?


How to Make a Paper Bitcoin Wallet
Creating an unhackable bitcoin wallet


Can Bitcoin Scale?
A look at the debate and the tech


What is SegWit?
A new way of storing transaction data


What is the Lightning Network?
Off-chain transaction channels


What is Bitcoin Cash?
Same blockchain, different characteristics.


Hard Fork vs Soft Fork
Why and how do blockchains split?


What is the Difference Between Litecoin and Bitcoin?
It's the silver to bitcoin's gold


How to Buy Litecoin
How to buy the bitcoin alternative litecoin


How to Mine Litecoin and other Altcoins
How to generate your own altcoins


Understanding Bitcoin Price Charts
A primer on bitcoin price charts


Bitcoin E-Commerce Services for Merchants
How to accept bitcoin at your business


What is Blockchain Technology?
A system of distributed data and logic


How Does Blockchain Technology Work?
Cryptographic keys, distributed networks and network servicing protocols


What Can a Blockchain Do?
Identity, recordkeeping, smart contracts and more


What is a Distributed Ledger?
A dynamic, independently maintained database


What is the Difference Between Public and Permissioned Blockchains?
Can anyone read or write to the ledger?


What is the Difference Between a Blockchain and a Database?
It begins with architectural and administrative decisions


What Are the Applications and Use Cases of Blockchains?
Tokenization, auditing, governance, settlement and more


How Could Blockchain Technology Change Finance?
Cross-border payments, new asset classes, regulatory compliance and more


What are Blockchain's Issues and Limitations?
Complexity, size, costs, speed, security, politics and more


Why Use a Blockchain?
To manage and secure digital relationships as part of a system of record


What is Ethereum?
A blockchain application platform and 'world computer'


What is Ether?
The 'fuel' of the ethereum network


How to Use Ethereum
Wallets, trading and ‘dapps’


Who Created Ethereum?
Vitalik Buterin


How Ethereum Mining Works
'Proof of Work' and 'Proof of Stake'


How to Mine Ethereum
GPUs, mining software and pools


How Ethereum Works
'Turing-complete' programming, 'state' and the 'EVM'


What is a Decentralized Application?
A distributed 'smart contract' system


What is a DAO?
A 'decentralized autonomous organization'


How Do Ethereum Smart Contracts Work?
Code, transaction fees and 'gas'


How Will Ethereum Scale?
‘Sharding’ and ‘off-chain’ transactions


What is an ICO?
Initial Coin Offerings refer to the distribution of digital tokens.

Read the full article
Porträt von Satoshi Nakamoto

Satoshi Nakamoto

Zur Person

Satoshi Nakamoto