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

基于Coq的混合形式化验证系统用于确保以太坊服务智能合约的可靠性和安全性

A Hybrid Formal Verification System in Coq for Ensuring the Reliability and Security of Ethereum-based Service Smart Contracts

Zheng Yang, Hang Lei, Weizhong Qian

摘要:

本文报告了一个正式的符号过程虚拟机(FSPVM)的开发,表示为FSPVM-E,用于在智能合约的源代码级别验证基于以太坊的服务的可靠性和安全性,并使用Coq证明助手来编程系统并证明其正确性。当前版本的FSPVM-E采用Curry-Howard同构的应用扩展--执行-验证同构作为其基本理论框架,将符号执行和高阶逻辑定理证明结合起来。FSPVM-E的四个主要组件包括通用的、可扩展的和可重用的形式存储器框架、表示为Lolisa的可扩展的和通用的形式中间程序设计语言(其是使用广义代数数据库的Solidity程序设计语言的大子集)、表示为FEther的相应的形式验证的Lolisa解释器以及辅助工具和库。所有组件的自正确性都经过Coq认证。目前,FSPVM-E支持ERC 20令牌标准,可以自动和象征性地执行基于以太坊的智能合约,扫描其标准漏洞,并使用Coq中的Hoare风格逻辑验证其可靠性和安全性。据作者所知,目前的工作代表了第一个在Coq中实现的以太坊智能合约混合形式化验证系统,该系统应用于Solidity源代码级别。

英文摘要:

This paper reports on the development of a formal symbolic process virtual machine (FSPVM) denoted as FSPVM-E for verifying the reliability and security of Ethereum-based services at the source code level of smart contracts, and a Coq proof assistant is employed for both programming the system and for proving its correctness. The current version of FSPVM-E adopts execution-verification isomorphism, which is an application extension of Curry-Howard isomorphism, as its fundamental theoretical framework to combine symbolic execution and higher-order logic theorem proving. The four primary components of FSPVM-E include a general, extensible, and reusable formal memory framework, an extensible and universal formal intermediate programming language denoted as Lolisa, which is a large subset of the Solidity programming language using generalized algebraic datatypes, the corresponding formally verified interpreter of Lolisa, denoted as FEther, and assistant tools and libraries. The self-correctness of all components is certified in Coq. Currently, FSPVM-E supports the ERC20 token standard, and can automatically and symbolically execute Ethereum-based smart contracts, scan their standard vulnerabilities, and verify their reliability and security properties with Hoare-style logic in Coq. To the best of authors' knowledge, the present work represents the first hybrid formal verification system implemented in Coq for Ethereum smart contracts that is applied at the Solidity source code level.

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

↑