Blockchain sharding improves the scalability of blockchain systems by partitioning the whole blockchain state, nodes, and transaction workloads into different shards. However, existing blockchain sharding systems generally suffer from a small number of shards, resulting in limited concurrency. The main reason is that existing sharding systems require large shard sizes to ensure security. To enhance the concurrency of blockchain sharding securely, we propose SpiralShard. The intuition is to allow the existence of some shards with a larger fraction of malicious nodes (i.e., corrupted shards), thus reducing shard sizes. SpiralShard can configure more and smaller shards for higher concurrency at the same network size. To ensure security with the existence of corrupted shards, we propose the Linked Cross-shard Endorsement (LCE) protocol. According to our LCE protocol, the blocks of each shard are sequentially verified and endorsed (via intra-shard consensus) by a group of shards before being finalized. As a result, a corrupted shard can eliminate forks with the help of the other shards. We implement SpiralShard based on Harmony and conduct extensive evaluations. Experimental results show that, compared with Harmony, SpiralShard achieves around 19x throughput gain under a large network size with 4,000+ nodes.
翻译:区块链分片技术通过将整体区块链状态、节点及交易负载划分至不同分片,从而提升区块链系统的可扩展性。然而,现有区块链分片系统普遍存在分片数量有限的问题,导致并发性不足。其主要原因在于现有分片系统需要较大的分片规模以确保安全性。为在保障安全的前提下提升区块链分片的并发能力,本文提出SpiralShard方案。其核心思想是允许存在部分恶意节点占比较高的分片(即腐败分片),从而减小分片规模。SpiralShard可在相同网络规模下配置更多、更小的分片以实现更高并发度。为确保腐败分片存在时的系统安全性,我们提出链式跨分片背书协议。根据该协议,每个分片产生的区块在最终确认前,需由一组分片按序进行验证与背书(通过分片内共识)。因此,腐败分片可在其他分片的协助下消除分叉。我们在Harmony基础上实现了SpiralShard并进行广泛评估。实验结果表明,在4000多个节点的大规模网络环境下,SpiralShard相比Harmony实现了约19倍的吞吐量提升。