Sparse Merkle树的Rollup单阶段批量更新
One-Phase Batch Update on Sparse Merkle Trees for Rollups
AI总结:
本文研究zkSync Lite中的稀疏Merkle树算法,提出一种高效的批量更新算法,将账户更新时间从$\mathcal{O}(\log n)$降至$\mathcal{O}(1)$,并通过单次遍历将批量更新成本减半。
摘要:
稀疏Merkle树是一种具有固定高度且索引叶子由索引到叶子值的映射给定的Merkle树。它允许高效的成员资格和非成员资格证明。它已被广泛用作各种应用中的认证数据结构,例如区块链的layer-2 rollups。zkSync Lite是一种流行的以太坊layer-2 rollup解决方案,它使用稀疏Merkle树来表示layer-2区块链的状态。账户信息记录在树的叶子中。在本文中,我们研究了zkSync Lite中提出的稀疏Merkle树算法,并提出了一种高效的批量更新算法,以在给定账户(叶子)操作列表的情况下计算新的根哈希。以zkSync Lite中的构造作为基准,我们的算法1)将账户更新时间从$\mathcal{O}(\log n)$提高到$\mathcal{O}(1)$,2)使用单次遍历将批量更新成本减半。对真实世界区块数据的实证分析表明,我们的算法最多比基准高出14%。
英文摘要:
A sparse Merkle tree is a Merkle tree with fixed height and indexed leaves given by a map from indices to leaf values. It allows for both efficient membership and non-membership proofs. It has been widely used as an authenticated data structure in various applications, such as layer-2 rollups for blockchains. zkSync Lite, a popular Ethereum layer-2 rollup solution, uses a sparse Merkle tree to represent the state of the layer-2 blockchain. The account information is recorded in the leaves of the tree. In this paper, we study the sparse Merkle tree algorithms presented in zkSync Lite, and propose an efficient batch update algorithm to calculate a new root hash given a list of account (leaf) operations. Using the construction in zkSync Lite as a benchmark, our algorithm 1) improves the account update time from $\mathcal{O}(\log n)$ to $\mathcal{O}(1)$ and 2) reduces the batch update cost by half using a one-pass traversal. Empirical analysis of real-world block data shows that our algorithm outperforms the benchmark by at most 14%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。