arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2312.08945cs.SE
收藏

面向可信智能合约工程的EVM区块链中Proxy与Diamond模式的Gas成本对比分析

A Comparative Gas Cost Analysis of Proxy and Diamond Patterns in EVM Blockchains for Trusted Smart Contract Engineering

Anto Benedetti, Tiphaine Henry, Sara Tucci-Piergiovanni

AI总结:

本研究针对EVM区块链中可升级智能合约模式的Gas成本对比空白,对比分析Proxy、diamond模式与传统不可升级合约的部署及执行Gas成本,提出整合的区块链模式与决策模型,助力可信智能合约工程实践。

摘要:

区块链应用正快速演进,因此需要集成可升级智能合约。已有研究提出多种软件模式,用以总结可升级智能合约的最佳实践。然而,目前缺乏针对这些可升级智能合约模式的对比研究,尤其是在部署和执行相关的Gas成本方面。本研究旨在深入分析两种主流可升级智能合约模式关联的Gas成本:Proxy(代理)模式和diamond(钻石)模式。Proxy模式使用一个指向逻辑合约的代理合约,而diamond模式支持一个代理合约指向多个逻辑合约。我们将两种模式与传统的不可升级智能合约进行Gas成本的对比分析。基于该分析,我们以两种整合后的区块链模式及对应的决策模型的形式产出理论贡献。通过这项工作,我们希望能助力更广泛地理解可升级智能合约模式。

英文摘要:

Blockchain applications are witnessing rapid evolution, necessitating the integration of upgradeable smart contracts. Software patterns have been proposed to summarize upgradeable smart contract best practices. However, research is missing on the comparison of these upgradeable smart contract patterns, especially regarding gas costs related to deployment and execution. This study aims to provide an in-depth analysis of gas costs associated with two prevalent upgradeable smart contract patterns: the Proxy and diamond patterns. The Proxy pattern utilizes a Proxy pointing to a logic contract, while the diamond pattern enables a Proxy to point to multiple logic contracts. We conduct a comparative analysis of gas costs for both patterns in contrast to a traditional non-upgradeable smart contract. We derive from this analysis a theoretical contribution in the form of two consolidated blockchain patterns and a corresponding decision model. By so doing we hope to contribute to the broader understanding of upgradeable smart contract patterns.

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

↑