以太坊区块链平台上的智能合约可升级性:一项探索性研究
Smart Contract Upgradeability on the Ethereum Blockchain Platform: An Exploratory Study
AI总结:
本文通过收集以太坊已部署智能合约的元数据与源代码,识别并刻画可升级合约的升级模式及其普遍性,分析开发者升级合约的原因,并基于交易数量和版本存续时间评估升级对合约采用与生命周期的影响。
摘要:
背景:智能合约是计算机化的自执行合约,包含在特定条件满足时强制执行的条款。智能合约在设计上不可变,一旦部署便无法修改,从而确保去信任化。尽管智能合约的不可变性具有诸多益处,但为了修复漏洞和潜在的功能改进,升级合约代码仍然是必要的。在过去几年中,智能合约社区引入了若干种升级智能合约的实践方法。可升级合约是展现这些实践方法并以可升级性为设计目标的智能合约。在升级过程中,会部署一个带有预期修改的新智能合约版本,后续的用户请求将被转发到最新版本(升级后的合约)。然而,关于升级实践的特征、开发者如何应用这些实践以及升级如何影响合约使用,目前知之甚少。\n目标:本文旨在刻画智能合约升级模式,并基于展现出这些模式的已部署合约分析其普遍性。此外,我们打算调查开发者升级合约的原因(例如引入功能、修复漏洞),以及升级在实践中如何影响合约的采用和生命周期。\n方法:我们收集已部署智能合约的元数据和源代码,基于一组策略识别展现出特定升级模式(可升级合约)的合约。然后,我们追踪每个可升级合约的智能合约版本,并使用相似性和漏洞检测工具识别合约版本之间的变化。最后,我们计划基于收到的交易数量和合约版本的存续时间,分析升级对合约使用的影响。
英文摘要:
Context: Smart contracts are computerized self-executing contracts that contain clauses, which are enforced once certain conditions are met. Smart contracts are immutable by design and cannot be modified once deployed, which ensures trustlessness. Despite smart contracts' immutability benefits, upgrading contract code is still necessary for bug fixes and potential feature improvements. In the past few years, the smart contract community introduced several practices for upgrading smart contracts. Upgradeable contracts are smart contracts that exhibit these practices and are designed with upgradeability in mind. During the upgrade process, a new smart contract version is deployed with the desired modification, and subsequent user requests will be forwarded to the latest version (upgraded contract). Nevertheless, little is known about the characteristics of the upgrading practices, how developers apply them, and how upgrading impacts contract usage. Objectives: This paper aims to characterize smart contract upgrading patterns and analyze their prevalence based on the deployed contracts that exhibit these patterns. Furthermore, we intend to investigate the reasons why developers upgrade contracts (e.g., introduce features, fix vulnerabilities) and how upgrades affect the adoption and life span of a contract in practice. Method: We collect deployed smart contracts metadata and source codes to identify contracts that exhibit certain upgrade patterns (upgradeable contracts) based on a set of policies. Then we trace smart contract versions for each upgradable contract and identify the changes in contract versions using similarity and vulnerabilities detection tools. Finally, we plan to analyze the impact of upgrading on contract usage based on the number of transactions received and the lifetime of the contract version.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。