arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.08252cs.CR
收藏

基于解构式状态机复制(SMR)的可扩展区块链最优分片

Optimal Sharding for Scalable Blockchains with Deconstructed SMR

Jianting Zhang, Zhongtang Luo, Raghavendra Ramesh, Aniket Kate

AI总结:

针对区块链分片的规模-安全两难问题,本文提出Arete协议,通过解构SMR流程、分离安全与活性考量,实现更优规模分片与交易并行处理,实验证明其性能优于现有最先进分片协议。

摘要:

分片技术被提出用于提升区块链的可扩展性,但存在规模-安全两难困境:每个分片必须足够大才能保障其安全性,这限制了单个分片的效能以及分片本身的划分程度。因此,现有大多数分片解决方案要么依赖于削弱敌手能力,要么对网络连接做出更强的假设。\n本文提出Arete——一种具备最优可扩展性的区块链分片协议,旨在解决上述两难问题。其核心观察是:如果单个分片能够容忍更高比例的(拜占庭)故障,我们就能安全地创建数量更多、规模更小的分片。因此,Arete的核心思路是通过拆分区块链的状态机复制(State Machine Replication,SMR)流程本身,来提升分片的安全韧性/阈值。与现代区块链类似,Arete首先将SMR解耦为三个步骤:交易传播、排序和执行。但与其他区块链不同的是,在Arete中,由单个排序分片执行排序任务,而多个处理分片负责区块的传播与执行。由于处理分片无需运行共识机制,每个处理分片最多可容忍半数节点被攻陷。此外,排序分片中的SMR流程是轻量级的,因为它仅对区块摘要进行操作。其次,Arete将拜占庭故障下的安全性与活性分开考量,以在可控范围内容忍临时活性违规的同时,进一步提升安全阈值。除了能够创建规模更优化的分片外,这种解构式SMR方案还使我们能够设计一种新颖的“认证-排序-执行”架构,实现交易处理的完全并行化,从而提升分片系统的性能。我们实现了Arete协议,并在AWS环境中通过最多500个节点对其进行评估,结果表明Arete的性能优于当前最先进的分片协议。

英文摘要:

Sharding is proposed to enhance blockchain scalability. However, a size-security dilemma where every shard must be large enough to ensure its security constrains the efficacy of individual shards and the degree of sharding itself. Most existing sharding solutions therefore rely on either weakening the adversary or making stronger assumptions on network links. This paper presents Arete, an optimally scalable blockchain sharding protocol designed to resolve the dilemma based on an observation that if individual shards can tolerate a higher fraction of (Byzantine) faults, we can securely create smaller shards in a larger quantity. The key idea of Arete, therefore, is to improve the security resilience/threshold of shards by dividing the blockchain's State Machine Replication (SMR) process itself. Similar to modern blockchains, Arete first decouples SMR in three steps: transaction dissemination, ordering, and execution. However, unlike other blockchains, for Arete, a single ordering shard performs the ordering task while multiple processing shards perform the dissemination and execution of blocks. As processing shards do not run consensus, each of those can tolerate up to half compromised nodes. Moreover, the SMR process in the ordering shard is lightweight as it only operates on the block digests. Second, Arete considers safety and liveness against Byzantine failures separately to improve the safety threshold further while tolerating temporary liveness violations in a controlled manner. Apart from the creation of more optimal-size shards, such a deconstructed SMR scheme also empowers us to devise a novel certify-order-execute architecture to fully parallelize transaction handling, thereby improving the performance of sharding systems. We implement Arete and evaluate it on a AWS environment by running up to 500 nodes, showing that Arete outperforms the state-of-the-art sharding protocols.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑