How Consensus Algorithms Solve Issues with Bitcoin's Proof of Work
A promising algorithm may provide an alternative to bitcoin's arguably wasteful process of confirming transactions.
It used to be that bitcoin mining was a community affair, but the process of confirming bitcoin transactions now requires an immense amount of hashing power specific to the SHA-256 mining algorithm.
As a result, the amount of electricity required to process and verify transactions has reached an immense scale.
In the early days, when the first users like the late Hal Finney began experimenting with bitcoin, users could just open the early bitcoin client and let their CPU whir away, creating bitcoins for fractions of a penny. By contrast, mining now requires tens of thousands of dollars in equipment, electricity and optional hosting expenses.
As a result, those who have significant financial resources have come to dominate the bitcoin mining space. Mining today is embodied by the emergence of enterprise-style, datacenter-hosted mining operations.
Jackson Palmer, who created the scrypt algorithm-based, proof-of-work altcoin dogecoin, is not overly positive on the prospect of mining overall, particularly in regards to the energy consumption.
He told CoinDesk:
One possible solution that has already been deployed in the digital currency ecosystem shifts away from proof of work, but still embodies the principles of a non-centralized systems.
The big technology race
A major issue that plagues mining today – but may not receive much attention – is that the application-specific integrated circuits (ASICs) for SHA-256 or scrypt mining are only capable of one process.
ASICs can mine digital currency and confirm transactions, but once they are rendered obsolete by next-generation mining gear, the equipment quickly loses its value.
While most components in mining gear are recyclable, the turnaround from product creation to product demise in this industry is a short.
In order to mine competitively, there is a constant race to build and obtain more powerful equipment.
There’s nothing wrong with a little competition, but the race to build better miners has seen the rise of enormous operational costs. As a result, many miners are locked into long-term return-on-investment (ROI) schemes that are susceptible to any significant changes to bitcoin's exchange value.
A decline in the price of bitcoin could diminish the incentive for many miners to participate. While this wouldn't lead to any immediate disruptions, the long-term health of the decentralized network could be put at risk as only the well-financed mining outfits could continue working.
Given these threats, is there an alternative to proof-of-work systems that hash out cryptographic problems and, all the while, use up excessive amounts of money and natural resources?
While there have been a number of proposals to use proof of work for good use, such as for solving prime numbers or promoting personal health, these may not be the ideal solution either.
Solution in the pipeline?
A possible solution to issues related to proof of work may come from an academic paper published by Miguel Castro and Barbara Liskov from MIT in 1999 presenting the concept of Practical Byzantine Fault Tolerance (PBFT).
PBFT is a system initially devised for low-latency storage systems – something that could be applicable in digital asset-based platforms that don't require a large amount of throughput, but do demand many transactions.
Daniel Feichtinger, co-founder of a startup called Hyperledger that utilizes PBFT, explains how its distributed system works:
That agreement constitutes what is known as 'consensus'. Just as bitcoin uses a decentralized system in order to confirm transactions without the need for a trusted third party, PBFT relies on the sheer number of nodes in order to confirm trust. As a result, hashing power is not required in this process.
“When you interact with multiple parties, you need some sort of consensus mechanism to ensure everyone has got the right records,” said Dan O’Prey, the second co-founder at Hyperledger.
Consensus already at work
Consensus-based transaction mechanisms have been on the market for some time. Ripple Labs utilizes this approach as part of its underlying protocol, based on the concept of PBFT.
Ripple Labs recently released a white paper on its consensus algorithm that points out the Byzantine Generals problem of communicating over an unreliable link, something PBFT is intended to solve.
The white paper states:
As a fork of Ripple, the Stripe-backed digital currency Stellar, founded by Jed McCaleb, also encompasses these same ideals. The idea, as shown in the graphics above, is that for every node added to a network's Universal Nodes List, the stronger the system becomes.
Yet there is a key weakness to this kind of structure – the source of incentive – and it is a fair question to ask. Unlike mining, what incentive exists for individuals or entities to host nodes?
Both Ripple and Stellar, along with Hyperledger, believe that there will be enough stakeholders to support PBFT-based transaction systems.
Hyperledger's approach
The Hyperledger project allows developers to create their own digital assets with a distributed ledger powered by nodes built on the principle of PBFT.
The system could be used to digitally back a real asset (such as a house), create new coins, or form a fault-tolerant system of consensus. Hyperledger co-founder Feichtinger said, using the latter application, his company's platform could even be used for advanced IT systems.
He explained:
The idea for Hyperledger’s use of PBFT goes beyond asset-based systems. It takes the idea of an algorithm for consensus and uses it to distribute all sorts of technical solutions – not just the low latency, high-speed file storage solution it was originally built to provide.
This might be a good method of testing the power of nodes that do not use incentive to develop their strength. What will happen without such rewards? Systems like Hyperledger aim to find out.
“If you use Byzantine Fault Tolerance, ideally [corruption] problems are contained. The other nodes can realize [a] node is misbehaving, and not respond to its messages,” Feichtinger said.
Consensus as a service
There could be value in providing consensus-as-a-service in the way that cloud providers sell software-as-a-service or infrastructure-as-a-service. In the case of Ripple and Stellar, consensus becomes a medium of value exchange.
Feichtinger explained:
Given the fact that consensus-based transaction systems are still in the experimental phase (much like the whole of digital currency), expect to see additional solutions like these to appear on the market. Whether they prove to be a viable replacement to proof of work systems will come down to one thing: if they are used or not.
Palmer, whose dogecoin creation relies on auxiliary proof of work (or 'merge mining') to secure its network, added there needs to be new and concrete solutions like Hyperledger and Stellar. These, along with Ripple, he believes, can help grow the digital asset ecosystem as a whole.
He concluded:
STORY CONTINUES BELOW
Encryption key image via Shutterstock