What is SegWit?
What is SegWit?
Last updated: August 1, 2018 10:08 am
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.
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
Article Source: http://www.coindesk.com
A Beginner’s Guide to Blockchain Technology
- Can Bitcoin Scale?
- Hard Fork vs Soft Fork
- How Bitcoin Mining Works
- How Can I Buy Bitcoins?
- How Could Blockchain Technology Change Finance?
- How do Bitcoin Transactions Work?
- How Do Ethereum Smart Contracts Work?
- How Does Blockchain Technology Work?
- How Does Cloud Mining Bitcoin Work?
- How Ethereum Mining Works
- How Ethereum Works
- How to Make a Paper Bitcoin Wallet
- How to Mine Ethereum
- How to Mine Litecoin and other Altcoins
- How to Set Up a Bitcoin Miner
- How to Store Your Bitcoins
- How to Use Ethereum
- How Will Ethereum Scale?
- What are Bitcoin Mining Pools?
- What are Blockchain’s Issues and Limitations?
- What Are the Applications and Use Cases of Blockchains?
- What Can a Blockchain Do?
- What Can You Buy with Bitcoin?
- What is a DAO?
- What is a Decentralized Application?
- What is a Distributed Ledger?
- What is Bitcoin Cash?
- What is Bitcoin?
- What is Blockchain Technology?
- What is Ether?
- What is Ethereum?
- What is SegWit?
- What is the Difference Between a Blockchain and a Database?
- What is the Difference Between Litecoin and Bitcoin?
- What is the Difference Between Public and Permissioned Blockchains?
- What is the Lightning Network?
- Who Created Ethereum?
- Who is Satoshi Nakamoto?
- Why Use a Blockchain?
- Why Use Bitcoin?
- Digital Asset Names New CEO to Succeed Blythe Masters
March 19, 2019 1:00 PM | By Jit Sutradhar
- BitGo Adds Custody Support for Blockchain Capital’s Security Token
March 19, 2019 12:00 PM | By Jit Sutradhar
- Bitcoin Faces Minor Price Retreat Amid Increasing Bull Exhaustion
March 19, 2019 11:00 AM | By Jit Sutradhar
- Japan to Tighten Rules on Cryptocurrency Margin Trading
March 19, 2019 10:00 AM | By Jit Sutradhar
Bitcoin Faces Minor Price Retreat Amid Increasing Bull Exhaustion
A Lightning API for Bitcoin Futures Data Has Launched
Citi Has Scrapped Its Plan for a JPM Coin-Like Bank-Backed Cryptocurrency
When Bakkt? Bitcoin Futures Market’s Approval Appears Stuck in Limbo
How Ethereum Applications Earn A+ Security Ratings