Hi.

Welcome to my blog. I document my adventures in travel, style, and food. Hope you have a nice stay!

Part 2: Blockchains are broken, here is why

Part 2: Blockchains are broken, here is why

Disclaimer: This article was produced for Radix DLT. The full post can be found here.

Part 1 focused on why blockchains need to be able to scale and why are struggling to do so. Part 2 focuses on the solutions being proposed to solve these scaling issues. 

All blockchain scaling solutions including block size increases, sharding, off- chain channels, and protocol-specific solutions like Lightning Network must be evaluated against three criteria:

  1. Does the network remain decentralized?
  2. Does the network remain secure?
  3. Will it allow, or at least prepare, the network to scale to levels required for mass adoption?

Increasing the block size

One of the more publicised attempts at scaling surrounds the block size debate which ultimately led to the Bitcoin hard fork of Bitcoin Cash in August 2017. Simply put, by increasing the block size you are able to process more transactions in the same timeframe.

Bitcoin has been at the heart of a battle over block sizes, but if we are looking to prepare for a future in which blockchain is at the heart of ‘Web 3.0,’ then these debates are irrelevant. An average transaction size of 500 bytes with 2,000 tps would lead to 1GB block sizes. There is no feasible block size that can process the amount of information that will be needed without running into the same problem; at a certain point block sizes become too large to maintain a decentralized network.

As block sizes increase, the higher the requirements (storage, processing power, bandwidth) become. This then leads to the risk of centralization as fewer and fewer nodes are able to participate. Furthermore, the network can only move as fast as all constituent nodes. – when blocks get past a certain size, it takes too long for it to move through all nodes on the network. This then leads to a backlog of blocks, and the system grinds to a halt.

Increasing block sizes will increase the feasible tps, but only to a limit - a limit that will be met sooner rather than later. It is therefore imperative that other solutions are found.

Sharding

Sharding separates the overall blockchain into different shards, with these respective parts spread across different nodes. The easiest way to visualize it is splitting one island into hundred different islands. Each of the islands must still conform to the same rules as before – but they are only responsible for governing their small island, rather than the previous larger unified one.

Sharding introduces benefits when it comes to scaling, namely that it is far less intensive to process 1/100th of the blockchain than it is to process the entire chain. It also brings in a new set of problems. One is that the issue of double spend changes, as there are a number of chains operating simultaneously that must be reconciled in order to avoid a bad actor spending the same asset twice.

Therefore, sharding requires the creation of a network with the same level of security as before, despite nodes now processing a much smaller set of transactions. All child chains must still have complete transparency over the wider network. Nodes still have to agree on all the transactions being processed but they now have to trust other nodes given the network is split up.

As the network is sharded, the computational power required to attack each child chain is reduced significantly, increasing the chances of a 51% attack. The switch to Proof of Stake from Proof of Work is designed to aid with sharding and thus scaling, but this will likely to lead to pooled groups and the same issue as miner centralisation.

Crucially, this also has to be achieved without introducing any form of preferential or dominant ‘master’ nodes which increases centralisation on the network. There are a number of different proposals for sharding but this tradeoff has thus far proved impossible to reconcile with the scalability.

Offchain state channels

Offchain state channels are a means through which certain blockchain interactions are no longer conducted on the blockchain but rather are conducted ‘offline’. This works by essentially allowing two (or more) participants to lock a part of the blockchain state as a ‘state channel’. These participants can still make changes/transactions between themselves to the state channel in the same manner as usual and then, once they have concluded business, the participants submit the state channel back to the blockchain. The blockchain then updates with the new data and the state is unlocked.

This allows for faster transactions (as they are off the blockchain it does not require the same processing power for verification) and for lower fees (as transactions bar the first and last were off blockchain). The Lightning Network is an example of this. Unfortunately this solution again falls down in maintaining a decentralised network, as it is vulnerable to economic censorship. Whereas with a normal blockchain transaction any miner can process your transaction in a block (and thus there can be no censorship) Lightning Network relies on being able to route payments through censorship-free hubs. If no Lightning Network hub hasve a channel with the anonymous hub you wish to transact with, then you are not able to make the payment. Through this, the hubs are able to restrict the routing of your transaction, running counter to the decentralised ethos of blockchain.

Scaling without centralisation

For blockchains to become widely adopted public networks they need to be able to scale without sacrificing the guiding principle of decentralisation.

Distributed systems can be scaled in two ways:

  • Horizontally (add more nodes)
  • Vertically (increase the resources to each node)

The problem blockchain has is that adding more nodes will, as explained, end up slowing down the network. Scaling vertically is also a nonstarter, as it will reduce the number of nodes processing and thus lead to centralisation. There is no blockchain project that has solved this issue.

All of the current workarounds are capable of working – but they cannot deliver the levels of scaling needed, without centralisation, for blockchain to be the backbone of a future economy. They are temporary fixes to patch up a system creaking under the load before anyone is even using it, bandages to patch up a soldier that has not yet left for war.

Blockchain remains an amazing technological development. But the simple – albeit hard to hear - answer to solve the scaling issue is to remove the blockchain ledger structure. Start anew and design an architecture and consensus algorithm that support partitioning/sharding, which are centralisation resistant and capable of processing transactions in parallel without falling victim to double spending.

The alternative is to continue down a path along which it will be impossible to reach the desired destination.

The Petro; the first bloodcoin

The Petro; the first bloodcoin

Part 1: Blockchains are broken, here is why

Part 1: Blockchains are broken, here is why