Understanding Crypto - Consensus Algorithm
When you have a centralized system like a social media platform or the database you use in your work, everything is very simple. When you make a change, the main server approves it and it gets saved. Or the head administrator makes a change and sends the new update to all systems in the network. It is a very straightforward process, but only works if there are no mistakes or ill intent. If there is a fault in the main server, it can save the wrong information without checking. And if the head administrator has a bad day, they can delete everyone’s information without leaving their office.
That is why decentralized systems have become so important in the world. It takes away the control from a single person or company and distributes it to everyone. It is only when everyone agrees that the change is valid that it is then entered in the ledger. Of course, that requires a new way of making sure that a consensus is reached. There are many ways to do that, with each of them having their pros and cons. In this article we will take a look at only the most popular ones, but be sure that many variations and hybrid versions exist.
Proof of Work (PoW)
The original approach was offered in the blueprints of blockchains that later turned into Bitcoin. In this system a new block is mined only when a computer solves a complex mathematical formula. And when that is solved and the new block is mined, all the computers in the system check if it is correct. Imagine a complicated mathematical task of “find the x”. While it can be really hard to find the value of x, once that has been done anyone can insert the solution and see that it is correct in mere seconds.
You do not need to own any coins to start mining for them. All you need is a computer that can solve these formulas, that can “look for x”. If someone was to attack the network and try forcing their own solutions in it, that would take an enormous amount of energy and time, because the solutions still need to be found.
And that is the exact reason why PoW is going out of style. The approach of making it harder for transactions to be validated has become a problem. While the network is safe, it is also very slow, with every transaction waiting in a long queue. And multiple computers around the world are all solving these formulas and using up so much energy that it has raised some serious concerns about the effect it has on the world’s energy consumption and pollution.
Proof of Stake (PoS)
This is the next approach that has been tried when people noticed the drawbacks of PoW. Instead of everyone battling to see who is going to be the first one to check the transaction, a node is randomly chosen from all the nodes in the network who already own a coin. A random coin is chosen to validate the transaction and then it gets rewarded for that. So, if you have 10 coins, your chances of being chosen are multiplied by 10.
The problem with this is that it actually encourages stagnation. If you have bitcoin and a bitcoin mining rig, you can always sell all your bitcoin and be sure that new ones are going to be mined. But if you have coins in a PoS system, they are the ones that are making you all that money. The second you sell them, you lose your chance to earn. Even if you sell just half, your chances to earn are halved.
That is why there are many variations of PoS to try and solve this issue. There are systems where coin holders vote for the next validator. There are systems that prioritize users who have held the coins for a longer time. And there are countless hybrid systems that tend to take the best of two systems.
The problem with PoS is the fact that people will want to keep their coins, not trade them. In a short time it can become an “old members only” type of a club where the ones who have the most coins get richer, but the newcomers are barely allowed to participate. The logical conclusion of such a system is a full circle back to centralization where one person holds 51% of all coins, thus being able to validate fraudulent transactions if they want to. Sure, it might seem strange why one would attack a system where they have a majority coin ownership, but stranger things have happened in the crypto world.
Proof of Capacity (PoC)
Now, instead of everyone calculating the possible answer like in PoW, the PoC offers every user a list of possible keys. The bigger your hard drive, the more keys you can receive and store, out of which there is a bigger chance that you have gotten the right one. All you have to do is allocate a place on your hard drive to be used for the key storage.
When you are mining in a PoW system, you need your computer to be a specific mining rig if you want any chances of success. You can’t do much else on it and, after a while, the expensive graphics card will be too overused to be good for anything else. With a PoC system it is more democratic. Anyone can allocate the part of their hard drive they are not using. When they change their mind and don’t want to participate any more, they can simply remove the keys and the hard drive has not deteriorated at all.
This seems like a good solution, but part of the reason might be the fact that it is not too widespread yet. Once it were to become mainstream, the same old race would start with huge mining farms, in which, instead of being rows and rows of graphics cards, there would be rows of hard drives. And the same old thing as with PoW would just start all over again.
Proof of Burn (PoB)
One of the basic tasks for a consensus algorithm is to make sure that the one who participates in the validation is, at the same time, interested in the wellbeing of the project. If you have a huge mining rig, you do not want to start any fraud so that you get banned and your rig is made obsolete. If you are a coin owner in a PoS system, you do not want to attack the whole blockchain, making the price tank and losing all your assets.
Just like that, if you are in a PoB system, you need to show your commitment by burning your own coins to get a chance to get coins. “Burning” is an act when you basically destroy your coins. As you can not just “delete” a virtual asset on a blockchain, it is done by sending a coin to a wallet that has no owner and no access key. The coins shall never be regained and can be considered lost. A real-life equivalent would be taking your wallet, putting it in a safe and throwing the safe in an ocean.
By doing this the member shows his commitment to the network. Burning 0.01 of a coin to get the chance to gain a whole coin. The payouts are balanced so that people do not burn more than they gain. More coins sent to the “burning” address means a bigger chance to be awarded a new coin.
While a relatively new system, it is not known how it would behave on a larger scale. Would this work with a million users? It will be hard to see this, as many people are reluctant about the system. The idea of destroying your assets seems very counter-intuitive, yes, but the bigger problem is trust. How sure can one be that the burned coins are actually sent to a dead address? And again, the rich will just get richer, just like with the PoS.
As always, there is no one clear system that works for every occasion. One solution is faster while the other is safer. And sometimes low security is a drawback, but a private blockchain would not care too much for low security, as all nodes are verified. While some chains need to be really fast, that is not the case with Bitcoin, as it is not used for purchasing commodities, but as an investment tool and a very unpredictable asset storage.
To each their own, sure, but that doesn’t mean that their systems can’t be upgraded. Some systems require the validators to be known, thus losing their anonymity. It greatly boosts security, but, at the same time, is a security flaw, as the whole system becomes centralized again. A validator’s node that is corrupted can cause great havoc. Other systems combine many previous systems like PoW and PoS in a single model, thus stabilizing the extreme security and loss of speed to a more average level where they meet in the middle.
One could say there are many flawed algorithms just as well as it could be said that there are algorithms for every need and both of these arguments would be correct. There is no single car that is easily manufacturable, can be bought by everyone, win an F1 race and pull a truck at the same time. So it would be unfair to expect a single algorithm to be the fastest, safest and biggest at the same time. No single aspect can be the one that determines if it is good or not.
Still, one thing is clear - the overall average data and possibilities will continue to increase. It is a new technology with everyone in the world now looking for a better solution. Some will continue to combine what we already know, while some are sure to blow everyone out of the water with a completely new and novel solution, that is for sure.
Thank you for reading our blog. If you have any questions about the topic or want to suggest a new one, please write an email to [email protected].