Bitcoin hard and soft forks for beginners
If you’re new to Bitcoin, some terms might sound very confusing. Most people have no clue what soft and hard forks are. In this blog post, we will try to explain soft and hard forks in such detail so everybody can understand.
This is quite important information because soft and hard forks can happen quite a lot. Not only Bitcoin has soft and hard forks, but potentially every coin can have them.
Recently (1 Aug 2017) a soft and hard fork took place on the Bitcoin blockchain. This could have an enormous impact on the bitcoin price and the future of Bitcoin. Also, a lot of people made a lot of money during the hard fork of the Bitcoin blockchain.
In this blog post, we will cover the difference between a soft and hard fork. We also cover what happened to Bitcoin last month and what will happen in the future.
Soft forks explained
The Bitcoin blockchain is essentially just a form of software. The blockchain consists of code that makes up the algorithm. For example, the Bitcoin blockchain is programmed to hold a maximum of 21 million bitcoins. But unlike software you install on your computer, some parts of the blockchain can never be changed. For example, the core algorithm is programmed to hold a maximum of 21 million Bitcoins. This can never be changed.
Most software gets outdated when months and years go by. In order to keep up with the technology or to implement different features, software updates take place. These updates can be anything. From patching security issues to adding completely new features.
With blockchain technology, a soft fork is an upgrade of the Bitcoin software which is backward compatible. Software that is using the Bitcoin network (also called nodes) can either run the new version of the software or the old version without any problems. This means that both versions accept new blocks from the blockchain.
The original version of the software will split with a soft fork. But the new version of the software remains backward compatible with the old version. This does not mean the new version will always be the final version as this picture implicates.
The version that will be used is based on the majority of the nodes running the software. If only a small portion of the nodes will run the new software, the new version will be deprecated. And everyone will be back using the original version of the software.
But when the majority of the nodes support the new version of the software, the original chain “dies” and no one will use this chain anymore. Then the original chain will consist of orphaned blocks.
Nodes can still use the same software but need to update this software to continue reading the new version. Nodes are (among other things) miner software, wallet software and exchanges running online wallets.
A recent soft fork on the Bitcoin network named SegWit will be explained later on.
Hard forks explained
Hard forks are not backward compatible. Once a hard fork takes place, there will be two different blockchains. You could say that with a hard fork, a new coin is created. The new coin will be an exact copy of the old one, only new fundamentally different features are implemented.
There is no way to go back to the original version. The new version is different on many levels (or just one fundamental difference) so that it can’t go back to the original version.
With the creation of a new blockchain, software needs to be upgraded. Since the new and original version is not backward compatible, there is a need for two separate wallets. Also, mining software needs to be adjusted to mine the new blockchain.
It’s not possible to update the current software since the new version of the blockchain is fundamentally different. With a hard fork, both blockchains exist next to each other. The miners of the blockchain will determine which blockchain will be the main protocol. Both coins can exist next to each other without any problems.
Why do soft and hard forks exist and who decides to use them?
Soft and hard forks exist for many reasons:
- To update the protocol (for example, to make the network faster and more secure)
- Political issues
- Hacks and security issues
The “problem” with Bitcoin is that nobody controls the network. There are different parties who have an influence on the future and upcoming updates. We can divide these groups in:
- Core developers
- Bitcoin users
- Bitcoin businesses
Basically, every group can decide to change things in the network. If they get enough support, every group could make changes to the network. But only if there is real support from a vast majority of the other groups.
As you can imagine, each group has different thoughts about the Bitcoin blockchain and how it should advance forward. Since no one controls the network, there is a need to have consensus to keep the blockchain strong.
In the past few months, there were a lot of things going on between these groups. Without going into many details, one-half of the groups wanted to implement an update called SegWIt. SegWit stands for Segregated Witness. With Segregated witness, it is possible to store transaction validations outside of the blocks. That means more transactions can fit into one block and makes the network faster.
That means with SegWit, the witness of the transaction (digital signature) can be segregated from the transaction.
SegWit also prevents the use of the ASICBOOST exploit. With this exploit, miners can supposedly mine a lot faster than miners who don’t use this exploit. Although it’s never proven that miners are using this exploit.
But as you can imagine, not everybody was happy with the implementation of SegWit. The core developers published an update called BIP 141. BIP stands for Bitcoin Improvement Proposal. If the majority of the miners would install this update, SegWit would be activated on the network. This update needs 95% of all hashing power to considered approved.
But only about 40% of all the miners signaled for BIP 141. So BIP 141 was never activated and the soft fork did not happen. There are a few reasons why this happened. Miners were afraid that they would earn fewer transactions fees because of SegWit.
There are also rumors that some big mining companies are using the ASICBOOST exploit. With the activation of SegWit, this exploit can no longer be used. Without the activation of BIP 141, some kind of war started between multiple groups.
User Activated Soft Fork
Developers, most exchanges and many Bitcoin users wanted to implement SegWit. Since the majority of the miners did not accept BIP 141, something else needed to be done. This resulted in a UASF (User Activated Soft Fork).
They basically said, all right you (the miners) don’t want to implement SegWit? Then we will force you to implement it. This USAF resulted in BIP 148. With BIP 148, all user software like wallets, and exchange software demanded that after 1 Aug, only blocks who signal for SegWit are accepted. All other blocks are dropped and will be orphaned.
That means every miner who is using the software without the BIP 148 update will mine blocks that will not be accepted. This way miners are forced to update to BIP 148 and activate SegWit on the network. No matter what would happen, BIP 148 will activate at 1 Aug 2017.
Now the miners are forced to activate SegWit. Because of this UASF, miners and Bitcoin companies joined together in New York to discuss this “problem”. This meeting is known as the New York Agreement or SegWit2X. This group consists of 58 companies located in 22 countries. And have a combined hashing power of ~ 83% on the Bitcoin blockchain.
After this meeting, they agreed to activate SegWit on the Bitcoin network. But they also planned an update for later this year. With this upgrade, the block size will be doubled from 1 MB to 2MB. Because this group wants to implement SegWit and update the block size, this is also called SegWit2X.
SegWit2X did not want to wait for 1 Aug 2017 and created another BIP. This BIP is called BIP 91. With BIP 91, they first wanted to make sure every miner agreed to upgrade the network with SegWit. In order to do so, every miner could send the text “NYA” in their mined blocks. If enough miners agreed to activate SegWit, all miners would update their software. If enough hashing power signals with the new software, miners who didn’t install BIP 91 would mine orphaned blocks.
Everything went ok and the majority of the miners accepted BIP 91 before the UASF (BIP 148) took place on 1 Aug 2017. To make a long story short, segmented witness is now active on the bitcoin blockchain.
The Bitcoin user activated hard fork 1 Aug 2017
But there was another group who completely disagreed with the implementation of SegWit and the upcoming update to increase the block size from 1MB to 2MB. They wanted a blockchain without SegWit and wanted to increase the block size to 8MB.
This resulted in a UAHF (User Activated Hard Fork) on 1 Aug 2017. Why 1 Aug 2017 you might think? We think it’s because of the media attention that SegWit created. A perfect time to plan a hard fork and split the blockchain to create another Bitcoin clone.
And this is how Bitcoin Cash was created. On the first of August, the Bitcoin blockchain has split up in two different blockchains. The original blockchain is still called Bitcoin. The new version of the blockchain is called Bitcoin Cash.
- Bitcoin Cash is created on 1 Aug 2017
- Bitcoin Cash uses no SegWit
- Bitcoin Cash block size is 8MB
- Bitcoin still uses the original blockchain
- Bitcoin has SegWit activated
- Bitcoin block size is 1 MB
Segwit is activated on the original Bitcoin blockchain. The block size on the original blockchain is still 1 MB. Users and miners can decide for themselves what blockchain they want to use.
Basically, every user can use both block chains the same time by installing a new wallet. The majority of miners stayed on the original blockchain. But what will happen to all the bitcoins?
The new blockchain is a copy of the original blockchain. That means if you had 100 Bitcoins before the split on 1 Aug, you will also have 100 Bitcoin Cash in the new blockchain. To claim Bitcoin Cash, you need to implement your private key from the wallet that holds your Bitcoins into the new wallet used for Bitcoin cash. There are also other ways to claim your Bitcoin Cash.
If you stored Bitcoins on an exchange, you don’t have access to your private keys. Most exchanges created a Bitcoin Cash wallet for you. In this case, you had to do nothing to receive your Bitcoin Cash.
Bitcoin future updates
As mentioned before, SegWit2X consists of two updates. First to activate SegWit, second to increase the block size from 1MB to 2MB. SegWit is already active on the current Bitcoin blockchain. Increasing the block size from 1MB to 2MB is set for somewhere in November 2017. That means somewhere in November 2017, another hard fork will take place on the Bitcoin blockchain.
Why is this important? Because every Bitcoin you own will also be copied to the new blockchain. Basically, you could get free money. In this case, SegWit and the increase in the block size are supposed to make the network faster and more reliable.
Sometimes hard forks take place due to hacking or other security events. Some time ago, The Dao was hacked. Some hacker managed to steal more than 50 million dollars worth of Ethereum. Because The Dao had some security measures, this hacker did not have access to his stolen funds right away. Together with the Ethereum developers, a hard fork took place to split the Ethereum blockchain and minimize the impact of the hack.
This hardfork resulted in a new coin named Ethereum Classic. But you can’t just hard fork anytime something goes wrong. A hard fork is basically the most extreme measure to take if something like this happens. There are more examples where many millions were stolen from insecure exchanges or wallets.
Now you know a little bit more about soft and hard forks. Why they happen and who initiates them. You can use this information to your advantage when trading.
If you learned something from this blog, please share it with your friends!