arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.06299cs.CR
收藏

分片区块链中的抢跑攻击与公平的跨分片共识

Front-running Attack in Sharded Blockchains and Fair Cross-shard Consensus

Jianting Zhang, Wuhui Chen, Sifu Luo, Tiantian Gong, Zicong Hong, Aniket Kate

AI总结:

针对分片区块链中跨分片共识的交易排序操纵和抢跑攻击问题,提出新型跨分片协议 Haechi,通过引入排序阶段和最终化公平性算法实现全局公平顺序与强一致性,在几乎无性能损失下保障交易安全。

摘要:

分片是扩展区块链的一项重要技术。通过将网络划分为称为分片的较小组件,分片区块链可以通过协调分片内和跨分片共识协议来并行处理交易,而不会引入不一致性。然而,我们观察到分片系统存在一个关键的安全问题:在协调分片内和跨分片共识协议时可能会发生交易排序操纵,使系统容易受到攻击。具体而言,我们识别出一个被称为最终化公平性的新安全问题,该问题可通过抢跑攻击被利用。这种攻击允许攻击者操纵交易的执行顺序,即使受害者的交易已经由公平的分片内共识处理并添加到区块链中。为了解决这一问题,我们提出了 Haechi,一种对抢跑攻击免疫的新型跨分片协议。Haechi 在交易处理和执行之间引入了一个排序阶段,确保交易的执行顺序与处理顺序相同,从而实现最终化公平性。为了适应分片之间不同的共识速度,Haechi 结合了最终化公平性算法,以最小的性能损失实现全局公平的顺序。通过提供全局顺序,Haechi 确保了分片之间的强一致性,从而在处理跨分片冲突交易时实现更好的并行性。这些特性使 Haechi 成为在现实世界中支持流行智能合约的有前途的解决方案。为了评估 Haechi 的性能,我们使用 Tendermint 实现了该协议,并在地理分布的 AWS 环境中进行了广泛的实验。我们的结果表明,与现有的跨分片共识协议相比,Haechi 在几乎没有性能牺牲的情况下实现了最终化公平性。

英文摘要:

Sharding is a prominent technique for scaling blockchains. By dividing the network into smaller components known as shards, a sharded blockchain can process transactions in parallel without introducing inconsistencies through the coordination of intra-shard and cross-shard consensus protocols. However, we observe a critical security issue with sharded systems: transaction ordering manipulations can occur when coordinating intra-shard and cross-shard consensus protocols, leaving the system vulnerable to attack. Specifically, we identify a novel security issue known as finalization fairness, which can be exploited through a front-running attack. This attack allows an attacker to manipulate the execution order of transactions, even if the victim's transaction has already been processed and added to the blockchain by a fair intra-shard consensus. To address the issue, we offer Haechi, a novel cross-shard protocol that is immune to front-running attacks. Haechi introduces an ordering phase between transaction processing and execution, ensuring that the execution order of transactions is the same as the processing order and achieving finalization fairness. To accommodate different consensus speeds among shards, Haechi incorporates a finalization fairness algorithm to achieve a globally fair order with minimal performance loss. By providing a global order, Haechi ensures strong consistency among shards, enabling better parallelism in handling conflicting transactions across shards. These features make Haechi a promising solution for supporting popular smart contracts in the real world. To evaluate Haechi's performance, we implemented the protocol using Tendermint and conducted extensive experiments on a geo-distributed AWS environment. Our results demonstrate that Haechi achieves finalization fairness with little performance sacrifice compared to existing cross-shard consensus protocols.

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

↑