Categories
Crypto Videos

Binance Enables SegWit Support for BTC Deposits as Adoption Skyrockets!

Binance Enables SegWit Support for BTC Deposits as Adoption Skyrockets

Binance, one of the largest cryptocurrency exchanges by volume in the world, has incorporated Segregated Witness, better-known as SegWit, support for Bitcoin deposits. 

The SegWit support was finally enabled for incoming deposits on Christmas Eve, Binance said in an official statement. Until this announcement, the protocol upgrade was enabled only for withdrawals. Effective immediately after the announcement, Binance users got the option to transfer funds to a SegWit address by selecting the BTC (SegWit) network. Binance further explained in the statement:

“Please note that SegWit should help reduce fees; however, if you incorrectly send incompatible assets to the desired address, your funds will not be recoverable, and therefore will result in permanent loss.”

SegWit

Implemented back in 2017, SegWit is a Bitcoin protocol upgrade designed to help with network scaling. Besides that, SegWit was implemented to help with fixing several associated bugs. This upgrade is known for the way it updates data on the blockchain, namely, by segregating signatures from transaction data. SegWit upgrade allows more transactions to be stored in a single block, thus doubling Bitcoin’s transaction capacity.

Data from transactionfee.info show that somewhere in the ballpark of two-thirds of Bitcoin payments currently use SegWit. However, even with SegWit implemented, Bitcoin continues to face scalability limitations, which many argue has impeded adoption for everyday use. Exactly those scalability limitations have transformed Bitcoin from a possible means of payment to a store of value. However, developers have not given up on BTC becoming a viable payment protocol.

Light Network

The Lightning Network has been proposed as a viable second-layer scaling solution for Bitcoin as a payment protocol. Unlike SegWit, which got implemented via a soft fork to the Bitcoin protocol, the Lightning Network is a layer that goes on top of Bitcoin, and that could enable instant and almost cost-free transactions.

Despite current limited transaction capacity, Bitcoin remains the uncontested leader of the digital currency market, with its dominance over other crypto assets recently hitting one-year highs and approaching dangerously close to 70% of the total cryptocurrency market cap. 

Categories
Crypto Guides

What Is SegWit & Why Is It Required?

Introduction

There are over two thousand cryptocurrencies and tokens in the market, and all of them have a set of rules to ensure they work properly. These rules are also referred to as protocols, and they are continuously in progress. Similarly to any computer code, mobile phones, and apps, the cryptocurrency protocols must be updated and improved, which means teams of programmers work every day to detect code errors, improve their performance and add new functionality. And SegWit is one of the updates that has been implemented in the Bitcoin protocol.

What is SegWit? 

Pieter Wuille was the man who came up with the idea of SegWit at a Bitcoin conference in 2015. Wuille claimed that SegWit was a possible solution to the flaw in the Bitcoin protocol. SegWit was a proposed solution to the problem of transaction malleability. Transaction malleability is a way of saying that coins can be stolen from the user just by changing tiny pieces of transaction information.

How does transaction malleability work?

Let’s say Bob sends 10BTC to Billy. But, with transaction malleability, Billy can trick Bob into sending him 20BTC instead of 10. The transaction malleability flaw in Bitcoin’s code enables Billy to tamper Bob’s witness before the transaction is confirmed on the blockchain network.

In this case, the transaction ID changes, but the transaction does not (10BTC were still sent from Bob to Billy). Now, Billy contacts Bob, saying that he hasn’t received 10BTC, though he actually has. Since the transaction id was altered, Bob checks and sees that the original transaction hasn’t been confirmed. So, seeing this, Bob sends 10BTC again to Billy. And Billy now receives 10 BTC more and 20 BTC in total.

The patch to transaction malleability

As mentioned earlier, a patch is a solution to this glitch in the Bitcoin protocol. SegWit is a patch designed by Pieter Wuille to bring a stop to transaction malleability. To prevent witness data from being used to alter the transaction ID, Peiter suggested removing it from the transaction. Hence, it is given the SegWit, which is the abbreviation for segregated witnesses, means to remove or separate the witness data.

A segregated witness creates something called as sidechain where witness data is stored aside from the main blockchain. This method efficiently prevents transaction IDs from being changed by dishonest users. Also, a smart thing about SigWit is that it’s backward compatible. So the nodes that are updated with the SegWit protocol can still work with nodes that are not updated yet. Such an update is called a soft fork, as opposed to updates that are not backward compatible, which are called hard forks.

Wuille wanted SegWit to be backward compatible so that the witness data was still recorded on the main blockchain. To solve this problem, he encrypted all the witness data of a block on the SegWit sidechain and then stored this root code on the main blockchain. Hence, transaction malleability was successfully patched without a hard-fork update.

The Pros on SegWit

💡 Patch to the transaction malleability – The problem of the malleability of transactions was solved by SegWit.

💡 Faster Blockchain transactions – SegWit makes the network much lighter. More transactions can be performed without increasing the overall block size.

💡 Room for more development – Things don’t end just at transaction malleability. If the use of blockchain increases drastically, the issue of scalability must be figured. And SegWit helped lightning network technology come to reality.

Conclusion

The problem of transaction malleability was a real concern to Bitcoin. A patch to it was really in need. Hence, Pieter Wuille came up with a successful patch to it. And this brought talks about the bright future of the Bitcoin platform. We hope you understood the concept of segregated witness (SegWit). If you have any questions, let us know in the comments below. Cheers!

Categories
Cryptocurrencies

Breaking Down SegWit – A step by step guide

SegWit is one admittedly complex concept in the blockchain world. Most crypto veterans probably still have no idea what it is or what it’s really about. And for those just now entering the blockchain sphere – it can be confusing even to begin wrapping your head around it.

Whichever the case, it’s essential to get it right – especially if you’re planning to interact with Bitcoin and other cryptocurrencies such as Litecoin.

The good thing is we help you take care of this in this article. So let’s discover what SegWit is, how it came to be, what it holds for the crypto market place, and more.

What is SegWit?

Segwit is the name given to a Bitcoin protocol upgrade developed in 2015 and implemented in August. 23, 2017. It was designed as a solution to the scalability of Bitcoin and other cryptocurrencies with a similar model, like Litecoin.

Bitcoin confirms a new block every 10 minutes, with each block only able to hold a certain number of transactions. Bitcoin’s block size is only 1MB – and this limits the number of transactions that can be confirmed for every block. As a result, the Bitcoin blockchain only processes an average of about seven transactions per second (TPS). This pales in comparison to other payment systems like Visa and PayPal, which handles 1700 TPS and 193 TPS, respectively.

SegWit’s bright idea is to increase the block size on the blockchain by removing digital signatures from transactions. When certain parts of a transaction are removed, it frees up space for more transaction throughput on the chain.

Segregate here means to separate, and witnesses are the signatures. So, SegWit is shorthand for “segregated witness,” which means to separate signatures from transaction data.

The SegWit idea originated with Bitcoin developer Pieter Wuille and was developed by him together with other developers, resulting in it being implemented as a soft fork in 2017 on the Bitcoin network. This upgrade brought a number of benefits for the blockchain network – including improving transaction speeds and increasing block capacity. It also solves the so-called transaction malleability issue – which we’ll discuss below, right after we deconstruct the ‘soft fork.’

What Is A Soft Fork?

Any software needs updates to improve its functionality or fix performance issues. In the cryptocurrency world, such updates or changes are known as forks.

A soft fork is a blockchain update that doesn’t split the chain into two.

In other words, a soft fork is an upgrade that is backward compatible with the previous software. A soft fork does not need nodes in the network to upgrade so as to follow the same network since all blocks on the ‘new’ blockchain follows the same consensus rules (a set of rules that all nodes usually enforce to validate a block and its transactions). In other words, a soft fork is backward compatible because old nodes will still recognize the new blocks on the upgraded blockchain.

A soft fork requires a majority of miners (nodes) to activate it so that it becomes operational. SegWit is one such type of a soft fork – it’s compatible with the old version of the Bitcoin blockchain.

What is Transaction Malleability, and Why is Fixing it Important?

Transaction malleability is a flaw in Bitcoin’s code that allowed bad actors to potentially change transaction signatures. Changing here means altering the unique ID of every Bitcoin transaction before it’s verified on the network. 

If someone tampers with a transaction signature, it could cause a transaction between two parties to be corrupted. Now, we know records on the Bitcoin blockchain are immutable, i.e., they can never be changed or altered. This resulted in invalid transactions being stored forever on the blockchain.

Signatures are the only way a transactions’ unique ID can be modified. SegWit came along and removed the need for a signature to be on a transaction. Even if someone alters the signature, the unique ID remains the same. The signature will still be checked, but this time not when calculating a transaction’s fingerprint, or identifier.  

SegWit’s Implementation Issues

After SegWit went live, its implementation was anything but immediate. Even today, the protocol is yet to be fully adopted by network participants. This is due to several reasons – including the different motivations of different users on the network. It’s also because it’s not mandatory, and some participants are okay with the original Bitcoin protocol.

Another reason is that there are different participants in the Bitcoin ecosystem playing various roles – so implementation of any new protocol is not exactly automatic. For example, the Bitcoin network relies heavily on wallets in which users will store their private and public addresses.

There are also crypto exchanges and other players in the ecosystem who need to upgrade their systems and hence ‘facilitate’ any changes in the network. For an upgrade to be adopted, all these organizations need to embrace it, and this doesn’t always pan out favorably.

A new software update would change the way transactions are carried out on the network. This might be good news for Bitcoin believers – but not necessarily for corporate interests. Consider, for example, the investment in billions of some of these companies. There is high motivation to maintain the status quo and not ‘rock the boat.’

There is also the question of wallets that were not able to support the protocol immediately. It took a while before some of the most widely used wallets – like Trezor and Wallet, could enable it.

There’s also the issue of miners. SegWit was designed to go live if a supermajority of miners signaled support for it. However, the larger portion of the miner community refused to activate the protocol. This is because SegWit was incompatible with a mining optimization software known as AsicBoost that they were using.

The miners’ refusal led to an interesting showdown. Bitcoin enthusiasts rallied around an idea called User Activated Soft Fork (UASF) – which meant they would activate the protocol on their own Bitcoin nodes if miners did not. The UASF would have split the Bitcoin network into two – one with SegWit and another without. The resulting outcome was not going to be favorable for anyone – which is probably why a few days before the UASF ‘deadline’, miners caved in and activated the protocol.

SegWit’s Adoption Challenges and Current Status

SegWit’s “backward-compatible” status, i.e., ensuring network participants who haven’t upgraded to it can coexist with those who have, means some participants have not been in too much of a hurry to adopt it.

Most Bitcoin-businesses, as well, would rather focus on customer acquisition than implementing not such necessary technologies. Rusty Russell, a blockchain developer at the blockchain company Blockstream, echoed this to the crypto news website Coindesk in 2018. He said that the priority for startups was “optimizing for growth and not implementing cool new tech.”

Implementing SegWit is also quite an involving task – both time-wise and financially. Founder of the crypto exchange Gemini, Tyler Winklevoss owned to this in a Reddit Q&A earlier this year. He said retrofitting wallets to accommodate SegWit was a “very tricky procedure” that required designing “a new hot wallet from the ground up.”

Nevertheless, SegWit has, over time, gained traction, thanks to Bitcoin increasing in value and a subsequent increase in transaction fees. For this, users are more inclined to use efficient, SegWit-enabled solutions. Businesses have noticed this shift and are now being forced to adapt.

For instance, in October of 2019, Bitcoin Segwit had reached usage rates of 56.82%, and Litecoin Segwit had hit 75%. These are encouraging figures that point to increased adoption of the protocol in the future.

Pros of SegWit

Solves the issue of transaction malleability

Facilitates faster transactions on the blockchain since waiting time is reduced 

Makes bitcoin transactions cheaper – faster transactions mean lower transaction fees

Helps Bitcoin and other cryptocurrencies achieve better scalability

Reduces the size of each individual transaction 

Helps new and exciting developments like the lightning network

Cons of SegWit

SegWit’s idea relies on eliminating some data off the blockchain. Some Bitcoiners believe keeping data off the blockchain is in itself a failure – like admitting the bitcoin model can’t stand on its ‘own feet.’

Miners now get lesser transaction fees for every individual transaction

SegWit’s implementation is a complex process that wallets have to do on their own. Some may not have enough resources to do it or may not get it right the first time

The implementation means more resources being used overall – owing to the increase in block capacity, transactions, bandwidth, and so on

The off-chain containing signature data will need to be maintained by miners as well. Unlike the blockchain where they get block rewards and a fraction of transaction fees, there is no reward for maintaining SegWit

Some in the Bitcoin community believe it’s a short term fix to a long term problem. They argue that it doesn’t really solve the scalability problem and that only changes to the blockchain size and changing how transactions are processed on the blockchain will really help Bitcoin to scale

The protocol has caused divisions in the Bitcoin community, leading to ‘forking wars,’ with the hard fork Bitcoin Cash resulting out of this

Conclusion

SegWit is a fundamental change to the Bitcoin ecosystem and one that sets the stage for further upgrades down the road. Removing the need to include identifying information on transactions on-chain brings several benefits such as more and faster transactions, fixing the thorny malleable transactions issue, and more.

But despite it being a promising, innovative solution – its adoption has been rather slow. Some people welcome it as an improvement to the world’s most popular cryptocurrency, while others think it highlights Bitcoin’s shortcomings. However, recent statistics show a marked improvement – something encouraging for its proponents. And from the current trend – its adoption looks set to go only forward. Let’s wait for what the future holds for both camps.

Categories
Crypto Guides

What Is Adaptive Scaling In Cryptocurrency & How Is It Achieved?

Introduction

One of the most important motives behind the invention of cryptocurrencies is that they should have the ability to be an alternative financial system. That is, we, the users, should be able to use them just like how the fiat currencies are being used today, but with many more features and ease. While this thought is very ambitious, the journey has already begun with Bitcoin. The total market capitalization of all the cryptocurrencies combined is around $200 BN as of Dec 2019. 66.4% of this comes from Bitcoin alone.

No matter how many cryptocurrencies have come, the craze for Bitcoin didn’t decrease. As this craze was not anticipated during the inception of Bitcoin, the network had to endure scaling issues, i.e., the number of transactions processed per second. New age cryptos are handling scaling issues by incorporating advanced consensus algorithms. But the Bitcoin network wants to stick to the POW as 18 million Bitcoins are already mined out of the permissible 21 million.

Hence it is essential to make some changes to the Bitcoin network to increase its scalability. In this article, let’s see a couple of techniques that have been incorporated in the Bitcoin network to tackle this issue.

SegWit

SegWit stands for the segregation of witnesses. It is a protocol upgrade that changes the way data is stored in the blockchain network. SegWit was first implemented in Litecoin in May 2017, and later, very shortly, it is also implemented in the Bitcoin network by August 2017. Although the primary intention of this protocol is to fix a bug, the side benefit has taken much more significant importance. When the Bitcoin network started, each block size was limited to only 1 MB. As a result, only seven transactions were processed per second, which limits the potential of Bitcoin in the day to day transactions.

The signatures alone occupy 70% of this 1 MB data in the block. Hence it was proposed to eliminate the signature in the block and increase the number of transactions. By doing this, the number of transactions processed per second is increased while keeping the block size constant. This upgrade also enabled technologists to develop a second layer on the Bitcoin network, which allows smart contract functionality. It is named as the lightning network; let’s understand this concept in detail.

Lightning Network

Lightning network is essentially a system of smart contracts built as a second layer on top of the Bitcoin network. This network allows people to send/receive payments instantaneously with way lower transaction fees by keeping them off the main network.

Working

First and foremost, a payment channel must be set up using a multi-signature wallet. All the involved parties can access this wallet with their respective Private keys. The wallet address is then saved in the public blockchain network. The corresponding parties can make Bitcoin deposits to this wallet.

Once this is done, the parties involved can conduct an unlimited number of transactions without ever touching the main blockchain network. Every time the parties involved conduct a transaction, the balance sheet gets updated with the amounts each party holding.

Though the block size of the Bitcoin network has been increased to further cope up with the scaling issues, these were the two most favorable measures taken at the time when needed to make Bitcoin desirable for day to day transactions. We hope you understood the concept of adaptive scaling in a blockchain network. Stay tuned for more interesting crypto content. Cheers!