总结智能转型
Summing Up Smart Transitions
摘要:
货币的一些最重要的高级属性是某些账户余额的总和。这些款项的性质可以确保货币和交易的完整性。例如,余额的总和不应通过转账操作来更改。由代码操纵的货币提出了验证挑战,以通过推理在其上操作的计算机程序来数学地证明其完整性,例如,在Solidity。对总和进行推理的能力是必不可少的:即使是以太坊社区最简单的ERC-20代币标准也提供了一种访问余额总供应的方法。不幸的是,针对这个接口编写的代码的推理是不平凡的:地址的数量是无限的,并且建立全局不变量,比如通过像转移这样的操作来保持余额的总和,需要高阶推理。特别地,自动推理器不提供指定任意长度的求和的方法。本文给出了一阶逻辑的一个推广,它可以表示无界的平衡和。我们证明了我们的扩展之一的decidability和一个稍微丰富的undecidability。我们引入了一阶编码,以自动推理的软件转换与求和。我们通过使用SMT求解器和一阶证明器来验证智能合约中常见转换的正确性,从而证明了我们的结果的适用性。
英文摘要:
Some of the most significant high-level properties of currencies are the sums of certain account balances. Properties of such sums can ensure the integrity of currencies and transactions. For example, the sum of balances should not be changed by a transfer operation. Currencies manipulated by code present a verification challenge to mathematically prove their integrity by reasoning about computer programs that operate over them, e.g., in Solidity. The ability to reason about sums is essential: even the simplest ERC-20 token standard of the Ethereum community provides a way to access the total supply of balances. Unfortunately, reasoning about code written against this interface is non-trivial: the number of addresses is unbounded, and establishing global invariants like the preservation of the sum of the balances by operations like transfer requires higher-order reasoning. In particular, automated reasoners do not provide ways to specify summations of arbitrary length. In this paper, we present a generalization of first-order logic which can express the unbounded sum of balances. We prove the decidablity of one of our extensions and the undecidability of a slightly richer one. We introduce first-order encodings to automate reasoning over software transitions with summations. We demonstrate the applicability of our results by using SMT solvers and first-order provers for validating the correctness of common transitions in smart contracts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。