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

Thunderbolt:面向分片DAG的并发智能合约执行与无阻塞重配置

Thunderbolt: Concurrent Smart Contract Execution with Non-blocking Reconfiguration for Sharded DAGs

Junchao Chen, Alberto Sonnino, Lefteris Kokoris-Kogias, Mohammad Sadoghi

AI总结:

针对DAG区块链分片面临的协调延迟和读写集预声明难题,提出Thunderbolt架构,通过双角色副本、DAG协调协议、动态并发控制和无阻塞重配置,提升64副本场景下吞吐量达50倍。

摘要:

分片已成为提升区块链系统可扩展性的关键技术。然而,现有分片方法应用于集成了表达性智能合约处理的有向无环图(DAG)协议时面临独特挑战。当前解决方案主要依赖2PC等协调机制,且需要事务读写集来优化并行执行。这些要求带来两个基本限制:1)额外的协调阶段会产生延迟开销;2)对于具有动态访问模式的图灵完备智能合约,预声明读写集并不实用。本文提出Thunderbolt,一种适用于单分片事务(Single-shard TXs)和跨分片事务(Cross-shard TXs)的新型分片架构,支持无阻塞重配置以确保系统活性。我们的设计包含4个关键创新:1)每个副本兼具全分片代表和事务提议者双重角色,对单分片事务采用执行-顺序-验证(EOV)模型,对跨分片事务采用顺序-执行(OE)模型;2)开发基于DAG的协调协议,在两种事务类型间建立确定性排序,同时保留并发执行能力;3)实现动态并发控制器,无需预先知晓读写集即可调度单分片事务,支持运行时依赖解析;4)Thunderbolt引入无阻塞分片重配置机制,通过频繁分片重分配应对审查攻击,且不阻碍DAG构建或阻塞共识。Thunderbolt在64个副本的情况下,吞吐量比Tusk框架的串行执行提升了50倍。

英文摘要:

Sharding has emerged as a critical technique for enhancing blockchain system scalability. However, existing sharding approaches face unique challenges when applied to Directed Acyclic Graph (DAG)-based protocols that integrate expressive smart contract processing. Current solutions predominantly rely on coordination mechanisms like 2PC and require transaction read/write sets to optimize parallel execution. These requirements introduce two fundamental limitations: 1) additional coordination phases incur latency overhead, and 2) pre-declaration of read/write sets proves impractical for Turing-complete smart contracts with dynamic access patterns. This paper presents Thunderbolt, a novel sharding architecture for both single-shard transactions (Single-shard TXs) and cross-shard transactions (Cross-shard TXs) and enables nonblocking reconfiguration to ensure system liveness. Our design introduces 4 key innovations: 1) each replica serves dual roles as a full-shard representative and transaction proposer, employing the Execution-Order-Validation (EOV) model for Single-shard TXs and Order-Execution (OE) model for Cross-shard TXs. 2) we develop a DAG-based coordination protocol that establishes deterministic ordering between two transaction types while preserving concurrent execution capabilities. 3) we implement a dynamic concurrency controller that schedules Single-shard TXs without requiring prior knowledge of read/write sets, enabling runtime dependency resolution. 4) Thunderbolt introduces a nonblocking shard reconfiguration mechanism to address censorship attacks by featuring frequent shard re-assignment without impeding the construction of DAG nor blocking consensus. Thunderbolt achieves a 50x throughput improvement with 64 replicas compared to serial execution in the Tusk framework.

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

↑