Understanding Segregated Witness (SegWit)
The Bitcoin network consists of thousands of computers that work as validators for the blocks created by miners. These computers are called nodes, which each keep a complete record of every transaction. This record is called a blockchain.
The Bitcoin network faced several problems as it matured. One was that more transactions were occurring, which added more blocks to the chain. Blocks are created every 10 minutes and used to be constrained to a maximum size of one megabyte (MB). Due to this constraint, only a certain number of transactions could be added to a block.
The number of transactions being conducted, represented by the blocks, was weighing down the network and causing delays in processing and verifying transactions. In some cases, it took hours to confirm a transaction was valid. Without SegWit's implementation, Bitcoin transaction validation would have slowed to a crawl as the cryptocurrency grew in popularity and the number of transactions increased.
SegWit was formulated by Bitcoin developer Pieter Wuille. Wuille is also the co-founder of Blockstream, a software company specializing in digital security for financial services.
The SegWit protocol divides the transaction into two segments. The unlocking signature (the "witness" data) is removed from the original portion, but it remains a part of the blockchain as a separate structure at the end. The original portion holds the sender and receiver data, while the separate structure at the end (the "witness" structure) contains scripts and signatures.
As a result of this segregation of data, more space is created, and more transactions can be added to the blockchain.
Goals of SegWit
To understand the goals behind SegWit's implementation, it's essential to understand what's going on behind the scenes that makes it useful.
The Main Issue SegWit Addressed
When one user sends another user some Bitcoin, two pieces of information are required: a public address and a private key. A public address is a digital identifier for the entities involved in the transaction. Every user has a public address to receive and send Bitcoin, and the entire network can see these addresses. Private keys cannot be seen—they are used as verification that the public addresses belong to a user.
On a basic level, SegWit is a process that changes the way data are stored, therefore helping the Bitcoin network to run faster.
The process for transferring Bitcoin starts when one user broadcasts a request to the network. This request includes the user's public address, the amount of Bitcoin being sent, and a transaction fee for the miners.
Next, miners process the transaction; information from both users is encrypted, which means the data is turned into a line of computer code called the transaction ID. At this point, the transaction is queued. Transactions are added to the queue until the block limit is reached and a block is created.
Finally, the block is broadcast to the nodes; if more than half of all nodes agree that the information is valid, the block is confirmed and added to the blockchain. At this point, the Bitcoin has successfully been transferred between users.
Over time, the network began to experience a slowdown in the number of transactions it could process as Bitcoin became more popular. Developers traced this issue back to the size limit of the blocks within the blockchain.
How SegWit Addressed the Issue
SegWit was the solution to a blockchain size limitation problem that reduced Bitcoin transaction speed. Bitcoin developer Dr. Pieter Wuille suggested that to solve this problem, the digital signature of the transaction witness needed to be segregated from the transaction data.
SegWit moves the signature outside of the transaction data. This reduces the size required for transaction storage. Bitcoin used to have a block size limit of 1 MB, but this changed as SegWit became accepted through the network.
Bitcoin transitioned to a block weight limit under SegWit of 4 million weight units (WU). A block that does not use SegWit holds 1 million WU, while one that uses SegWit has a limit of 4 million WU.1 Because old blocks were limited to 1 MB, many cryptocurrency fans believe that 1 MB equals 1 million WU (the non-SegWit block limit) and then correlate the 4 million WU limit to an increase of block size to 4 MB.1 While there was a block size increase following SegWit's adoption, the limit is not in megabytes.
For example, block 720399 was mined on Jan. 25, 2022. It had a size of 1.558 MB but was 3.993 million WU. Block 720340 was mined 21 minutes later and was 1.457 MB with a weight of 3.993 million WU.2
3 Earlier the same day, a block was mined with a size of 1.188 MB, with 3.993 WU.4 This demonstrates that there is not necessarily a size limit in megabytes, but a limit based on the weight, taking the block's base size and total size into account.1
This creates more space for data, which increases the speed of transaction validation. SegWit also paved the way for Bitcoin to enable smart contracts and upgrade to another version, Taproot.
Is SegWit Secure?
SegWit enhances the security of Bitcoin's blockchain by preventing transaction malleability—the ability to change small pieces of information in a block.
Why Was SegWit a Good Idea?
The cryptocurrency community still debates whether SegWit is good or bad, but security enhancements and decreased transaction times benefit the blockchain, miners, and nodes that accept it. SegWit led to the implementation of Taproot, an upgrade to Bitcoin built upon SegWit that allows for even faster validation.
Is SegWit a Soft Fork?
SegWit is a soft fork of the Bitcoin blockchain. Soft forks are changes that do not create a new blockchain, while a hard fork does.
SPONSORED
Open a Live Account in Under 5 Minutes
Open a trading account in under 5 minutes and join 900,000 others globally trading 300+ CFD products over assets like forex, indices, and gold with an award-winning broker. Trade forex from 0.0 spreads on Vantage's RAW account with up to 1:500 leverage. You'll also enjoy access to free education and trading tools with 24/5 phone support.
Segregated Witness (SegWit) is a blockchain protocol change that separates scripts and signatures into a new structure that is committed to blocks in the blockchain apart from other transaction datatransaction data. This effectively compartmentalizes data that is needed to validate the blockchain state away from data that is necessary to actually determine the effects of transactions.
Segregated witness, or SegWit, is an update to blockchain protocols in which the digital signatures are separated from the transaction data in the blocks. It is the name used for a soft fork change in the transaction format of the cryptocurrencycryptocurrencies Bitcoin, Litecoin, and other cryptocurrenciesothers.
It is intended to increase the scalability of blockchain protocols such as bitcoin, and improve properties related to transaction malleability.
Segregated Witness (SegWit) is a blockchain protocol change that separates scripts and signatures into a new structure that is committed to blocks in the blockchain apart from other transaction data. This effectively compartmentalizes data that is needed to validate the blockchain state away from data that is necessary to actually determine the effects of transactions.
There are four main motivations for implementing SegWit on a blockchain protocol such as Bitcoin:
Additionally, the transaction malleability fix allows for the creation of unconfirmed transaction dependency chains without counterparty risk, which is necessary in order to implement trustless layer 2 solutions such as the Lightning Network. SegWit itself is not necessary for the Lightning Network to work, but a transaction malleability fix of some kind is necessary. Other solutions for the malleability issue have been proposed such as Flexible Transactions.
SegWit first went live in a soft fork of the Bitcoin blockchain on August 23, 2017. A hard fork named SegWit2x that would force all miners to activate SegWit was scheduled for November 17, 2017. However, the fork was socially contentious and ultimately didn't garner enough support for the new cryptocurrency (B2X) to be relevant compared to BTC.
It is intended to increase the scalability of the blockchain protocols such as bitcoin, and improve properties related to transaction malleability.
Segregated Witnesswitness, or SegWit, is an update to blockchain protocols in which the digital signatures are separated from the transaction data in the blocks. It is the name used for a soft fork change in the transaction format of the cryptocurrency BitcoinBitcoin which has already been implemented on, LitecoinLitecoin, and other cryptocurrencies.
It is intended to solveincrease athe scalability of the blockchain sizeprotocols limitationand problemimprove thatproperties reducesrelated Bitcointo transaction speedmalleability.
Edit to enter detailed information about SegWit
It is intended to solve a blockchain size limitation problem that reduces Bitcoin transaction speed.
Edit to enter a brief description of SegWit
Segregated Witness, or SegWit, is the name used for a soft fork change in the transaction format of the cryptocurrency Bitcoin which has already been implemented on Litecoin
Edit to enter a brief description of SegWit
Edit to enter detailed information about SegWit