In the first half of 2017, tech startups raised more money through ICOs (initial coin offerings) than VC investments worldwide combined. It took the Bitcoin blockchain network nine years to grow to $70 billion valuation; the Ethereum blockchain network took three years to reach $30 billion, a growth rate and size on par with the most successful tech startups in the world. The network effects that empower Google, Facebook, Uber, are just as powerful without those centralized middlemen.
However, a key shortcoming of the current generation of blockchain technologies is their limits when it comes to performance and scalability. For instance, the entire Bitcoin network can only handle seven transactions per second, compared with over 2,000 transactions per second on the VISA network and millions of transactions per second handled by any top tier consumer application. That has made it impossible for the current generation of blockchain networks to handle big data applications.
Is the poor performance of blockchains an engineering problem? It is not, at least not entirely. The problem is actually inherent to the incentive-driven design of blockchains, known as cryptoeconomics.
Incentives in Bitcoin consensus
Blockchain is useful because it allows untrusted and non-corporative parties to work together and maintain a system. Let’s look at the example of the Bitcoin network. Each Bitcoin miner has much to gain if he or she can alter the transaction ledger and assign more coins to himself or herself. The genius of Satoshi Nakamoto is that he designed a mechanism that makes such alteration virtually impossible. In order to alter a single transaction in the ledger, a miner (attacker) must work harder than the rest of the network combined, in terms of computing power, to quickly spoof the hashes required on each block. This is called Proof-of-Work (PoW) security of the blockchain. Naturally, the more computing power the whole network has, the less likely it is to be attacked. This is an economic design: to make it cost prohibitive to attack the network.
June 5th: The AI Audit in NYC
Join us next week in NYC to engage with top executive leaders, delving into strategies for auditing AI models to ensure fairness, optimal performance, and ethical compliance across diverse organizations. Secure your attendance for this exclusive invite-only event.
Nakamoto has a second economic design built into the Bitcoin system: Everyone contributes computing power for a chance to win Bitcoins for each block. This economic incentive has proven so powerful that the computing power in today’s bitcoin network is 1,000 times greater than the entire Google Cloud.
Now, the problem with the Bitcoin-style PoW is that it requires a lot of computing work to create a new block. Bitcoin PoW has resulted in an enormous amount of useless work and energy waste. It is why the Bitcoin and Ethereum blockchain networks are very slow.
To solve blockchain’s performance and scalability problems, we must look into new ways to reach consensus among untrusted parties. We must innovate on cryptoeconomics. I recently attended the Cryptoeconomics and Security Conference (CESC) organized by Blockchain at Berkeley at UC Berkeley, and was impressed by the quality of the research presented there. A big part of the conference was about how to improve the design of consensus.
New consensus mechanisms
Proof-of-Stake (PoS) has been proposed as an alternative mechanism for consensus to PoW. PoS essentially allows existing token/coin holders to vote and reach consensus on new blocks containing transactions. Without the need to perform meaningless work to prevent attacks, PoS is much faster than PoW and can reach hundreds of thousands of transactions per second, making it suitable for consumer applications. However, PoS is also prone to centralization, as stakeholders could collude to alter transactions.
How do we design a secure PoS system? A leading solution is to use Delegated Proof of Stake (DPoS), where the stakeholders delegate their tokens to a group of known validators to do the network maintenance work. If a validator misbehaves, the delegating stakeholders would be penalized and lose some coins. DPoS uses economic incentives to secure the network. It forces stakeholders to establish trust with validators in the real world. Two leading contenders of the DPoS consensus model, Casper and Cosmos, presented their work-in-progress at the CESC event. Both networks are expected to go live soon.
- Casper is a DPoS implementation from Ethereum. Ethereum researcher Vlad Zamfir gave a comprehensive presentation. He discussed several game theory scenarios on potential attacks and the protocol designs to help prevent those attacks (presentation video).
- Cosmos is a blockchain network using the Tendermint DPoS engine. It is one of the more mature and advanced implementations in the market and has already started piloting its DPoS validator program. Interestingly, through the Ethermint plugin, Ethereum itself can use Tendermint as a replacement consensus engine, so Ethereum could become one of the blockchains in the Cosmos network (presentation video).
Of course, there are more contenders in this space than just the market leaders. Others at the event reported research and experiments in trying to find scalability solutions, often within the constraints of PoW:
- Algorand uses a secure algorithm to form random “consensus committees” to ensure security. By default, Algorand does not rely on economic incentives and can reach security algorithmically, but it can be extended to “punish” misbehaving nodes (presentation video).
- Thunderella is built on PoW but with randomly selected groups of participants in charge of consensus. By reducing the number of parties in consensus, and even introducing a “coordinator” in some cases, the system trades decentralization for speed (presentation video).
- Meshcash replaces the linear blockchain with a DAG tree structure. By allowing tree forks to be selected and determined asynchronously, it could significantly improve the overall throughput of the system. Meshcash relies on PoW but has a much higher performance than Bitcoin (presentation video).
- Truebit creates a consensus mechanism for miners in a PoW system to agree on results from expensive computing tasks performed off the blockchain. That could significantly speed up smart contract execution as only a few nodes need to fully execute those programs under Truebit (presentation video).
- Hashgraph is another implementation of a DAG-based structure to replace the blockchain for performance improvements (presentation video).
Note: On the topic of scaling the Bitcoin system, the Swiss Federal Institute of Technology’s Lefteris Kokoris-Kogias presented a great overview of available solutions and their rationales (presentation video).
In addition to mining or minting new blocks through consensus, network participants can also be incentivized through fees. That includes Bitcoin transaction fees or Ethereum gas. How to design the fee structure (presentation video) to better motivate people to contribute to network security is another topic that can be explored by cryptoeconomics research.
Overall, cryptoeconomics is still an emerging field. The goal of this research is to obtain high-performance trustless consensus. The current leaders will probably be able to succeed with DPoS, but it’s worth keeping an eye on other alternatives.
Michael Yuan is Chief Scientist at the CyberMiles Foundation, building a blockchain and “master token” for e-commerce. He is currently working on a book titled “Code is law: a developer’s guide to the blockchain” to be published by Addison-Wesley in Q4 2017. You can follow him on Medium or Twitter.