solc-verify:一个Solidity智能合约的模块化验证器
solc-verify: A Modular Verifier for Solidity Smart Contracts
摘要:
我们提出了solc-verify,一个以太坊智能合约的源代码级验证工具。Solc-verify采用Solidity编写的智能合约,并使用模块化程序分析和SMT求解器释放验证条件。建立在Solidity编译器之上,solc-验证在合约源代码级别的原因,而不是在以太坊字节码级别操作的更常见的方法。这使得solc-verify能够在精确建模低级语言语义的同时有效地推理高级契约属性。合约属性,如合约不变量、循环不变量和函数前置条件和后置条件,可以由开发人员在代码中作为注释提供。这为智能合约提供了自动化但用户友好的形式化验证。我们通过检查现实世界的例子,我们的工具可以有效地找到错误,并证明正确性的非平凡的属性,以最小的用户努力来演示solc验证。
英文摘要:
We present solc-verify, a source-level verification tool for Ethereum smart contracts. Solc-verify takes smart contracts written in Solidity and discharges verification conditions using modular program analysis and SMT solvers. Built on top of the Solidity compiler, solc-verify reasons at the level of the contract source code, as opposed to the more common approaches that operate at the level of Ethereum bytecode. This enables solc-verify to effectively reason about high-level contract properties while modeling low-level language semantics precisely. The contract properties, such as contract invariants, loop invariants, and function pre- and post-conditions, can be provided as annotations in the code by the developer. This enables automated, yet user-friendly formal verification for smart contracts. We demonstrate solc-verify by examining real-world examples where our tool can effectively find bugs and prove correctness of non-trivial properties with minimal user effort.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。