arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2205.07529cs.SEcs.LO
收藏

规范就是法则:以太坊智能合约的安全创建和升级

Specification is Law: Safe Creation and Upgrade of Ethereum Smart Contracts

Pedro Antonino, Juliandson Ferreira, Augusto Sampaio, A. W. Roscoe

摘要:

智能合约是“代码即法律”范式的基石:智能合约的代码无可争议地描述了其资产的管理方式--一旦创建,其代码通常是不可变的。Fakion智能合约提供了反对这种模式实用性的最重要证据;它们有很好的记录,并导致价值巨额资金的资产受到损害。为了解决这个问题,以太坊社区提出了(i)审计/分析智能合约的工具和流程,以及(ii)实现合约代码可变机制的设计模式。(i)和(ii)分别只部分解决了“代码即法律”范式提出的挑战。在本文中,我们结合要素(一)和(二)创建一个系统的框架,远离“代码是法律”,并产生了一个新的“规范是法律”的范式。它允许创建和升级合同,但只有当它们满足相应的正式规范时。该框架以\emph{a trusted deployer}为中心:一个正式验证和强制执行此一致性概念的链下服务。我们已经建立了这个框架的原型,并研究了它对实现两个广泛使用的以太坊标准的合同的适用性:ERC 20令牌标准和ERC 1155多令牌标准,结果令人鼓舞。

英文摘要:

Smart contracts are the building blocks of the "code is law" paradigm: the smart contract's code indisputably describes how its assets are to be managed - once it is created, its code is typically immutable. Faulty smart contracts present the most significant evidence against the practicality of this paradigm; they are well-documented and resulted in assets worth vast sums of money being compromised. To address this issue, the Ethereum community proposed (i) tools and processes to audit/analyse smart contracts, and (ii) design patterns implementing a mechanism to make contract code mutable. Individually, (i) and (ii) only partially address the challenges raised by the "code is law" paradigm. In this paper, we combine elements from (i) and (ii) to create a systematic framework that moves away from "code is law" and gives rise to a new "specification is law" paradigm. It allows contracts to be created and upgraded but only if they meet a corresponding formal specification. The framework is centered around \emph{a trusted deployer}: an off-chain service that formally verifies and enforces this notion of conformance. We have prototyped this framework, and investigated its applicability to contracts implementing two widely used Ethereum standards: the ERC20 Token Standard and ERC1155 Multi Token Standard, with promising results.

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

↑