arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2005.01261cs.SE
收藏

事件B中Solidity合约的形式化验证

Formal Verification of Solidity contracts in Event-B

Jian Zhu, Kai Hu, Mamoun Filali, Jean-Paul Bodeveix, Jean-Pierre Talpin

摘要:

智能合约是区块链的产物,提供了物理交易的不可变和可验证的规范。Solidity是一种特定领域的程序设计语言,旨在定义智能合约。它旨在降低在以太坊等分布式账本上执行合同所带来的交易成本。但是,Solidity合同需要遵守需要形式化验证和认证的安全和保障要求。本文提出了一种通过将Solidity合同转换为Event-B模型来满足这些要求的方法,支持认证。为此,我们定义了一个受约束的Solidity子集和一个将Solidity合约转换为Event-B模型的传递函数。然后,我们利用Event-B方法的功能,在不同的抽象级别上细化模型,以验证Solidity合约的属性。我们可以在Rodin平台的帮助下验证Event-B模型生成的证明义务。

英文摘要:

Smart contracts are the artifact of the blockchain that provide immutable and verifiable specifications of physical transactions. Solidity is a domain-specific programming language with the purpose of defining smart contracts. It aims at reducing the transaction costs occasioned by the execution of contracts on the distributed ledgers such as the Ethereum. However, Solidity contracts need to adhere safety and security requirements that require formal verification and certification. This paper proposes a method to meet such requirements by translating Solidity contracts to Event-B models, supporting certification. To that purpose, we define a restrained Solidity subset and a transfer function which translates Solidity contracts to Event-B models. Then we take advantage of Event-B method capabilities to refine models at different levels of abstraction to verify Solidity contracts' properties. And we can verify the generated proof obligations of the Event-B model with the help of the Rodin platform.

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

↑