Currently, Ethereum is considering the adoption of a new way to validate transactions within their networks reducing the energy consumption and achieving an ever greater number of transactions per second. As discussed in Cryptocoin and the Blockchain this new option is called proof-of-stake (PoS). However, the current consensus algorithm adopted by most blockchains, known as proof-of-work (PoW), has proven itself over time and the blockchain community is worried over the security risks that may arise from adopting PoS.
PoW From Thought to Implementation
PoW is nothing new. We are usually annoyed by it everytime we come across it when we surf the web. We are of course talking about the CAPTCHA, a smaller version of PoW implemented to prove that we are human. By you putting in the work of deciphering those ridiculous squiggles you are verifying you are in fact "human" and not a machine, When you insert the correct response you are validated to be a human and can carry on your merry way on the net.
In the blockchain, this is a lot more complicated. Within the blockchain network, there are many nodes interconnected with each other. The nodes that share processing power within this network can be called miners, they are the ones that do the PoW to validate the transactions and find the new hash for the next block in the blockchain. As they successfully complete each computation they are rewarded with crypto coins thus encouraging miners to keep mining.
Over time these computations increase in difficulty, meaning that the individual nodes that want to mine need to be more powerful to be the first to finish the PoW. Miners went from being individuals with a lot of processors in the basement to being giant mining warehouses with rows upon rows of powerful processors. For a moment this seemed to defeat the purpose of a decentralized crypto as the only ones with such a purchasing power were big companies. However, soon enough it became harder even for them to mine fast enough. Miners now pool together their processing power so that they as a collective can finish the PoW and share the rewards according to who had the most correct computations.
Power Hungry
Ethereum and Bitcoin are examples of mining operations that have escalated to absurd levels in terms of energy consumption, and mining pool size. For Ethereum it is estimated that the total mining costs ($2,277,959,012) are outweighing the annual rewards ($1,378,876,829) that could be had for mining. The Ethereum mining energy consumption seems to be close to the equivalent energy usage of Iceland.
Bitcoin, on the other hand, is estimated to still be profitable to mine as the estimated mining costs ($3,656,073,069) remains below the annual rewards ($4,769,978,010). Unlike Ethereum, Bitcoin's estimated energy consumption is similar to that of Austria.
Since PoW will only become harder and require more processing power to complete it is only reasonable to expect that energy consumption won't get any better unless some incredible technological achievements are made in processing capabilities or clean energy production.
PoW can be vulnerable to distributed denial of service (DDoS) attacks, essentially hackers controlling 51% of the blockchain network. Hackers would be able to do any transaction they wished including double spend and erase the history of the ledger. Such attacks would be counterproductive, as it would devalue the cryptocurrency in question. However, it is concerning to see mining pools, currently, growing in size as miners obviously want to join the biggest mining pool to have a higher chance of earning rewards. At the moment on Ethereum it would take only 3 mining pools to join to reach 51%. Obviously, everyone in the pool would want to keep the status quo and earn rewards but the fact that the 51% mark is becoming achievable is at best unsettling.
PoS Removing the W
PoS throws away the work and essentially validates transactions based on how reliable the stake is. Within the network, miners would be obsolete as no computations are needed to solve the complex problem to be able to validate the next block. Instead, every node can stake a portion of their cryptocurrency in the network. The stake can be considered collateral; if the transaction were to be bad the
staker would see his stake reduced. A node that stakes is called "Staker" the more each node stakes and the longer they leave the stake untouched the better the chances of being the one chosen to validate the transaction, earning rewards.
Once the staker is chosen to validate they "forge" the new block. They put their stake on the line, validate the transaction and forge the new block. If the transaction is found to be a sham then the staker who forged the block will lose their stake and the right to partake in future forging processes. Ethereum is designing "Casper", which would do exactly this function to any charlatan node in the network, in preparation of their transition to a PoS algorithm.
With a new algorithm, there also comes a new and improved database, one of these new methods for PoS it's called sharding. The distributed ledger is shredded and shared amongst the entire network so that the entire network does not need to be involved with transaction validation. Sharding essentially speeds up the validation process as only the information that is needed is validated, rather than having to check with the entire network.
PoW is well-tested and used in many cryptocurrency projects. DDoS attacks on a blockchain employing this algorithm are impossible with today’s computing technology. However, the high energy cost, increased strain on the environment, associated adverse media coverage, increasing centralization of mining operations, and low transaction throughput will likely make it unviable in the long run. Communities are increasingly concerned about high energy costs of Bitcoin mining, and China is officially banning all such operations.
full article: https://www.dapp.com/article/proof-of-stake-or-proof-of-work-whats-the-difference