solc-verify: A Modular Verifier for Solidity Smart Contracts

Ákos Hajdu, Dejan Jovanović
7/9/2019
cs.PLcs.LOcs.SE

Official code: SRI-CSL/solidity (53 stars, C++, GPL-3.0, last commit 2023-09-05).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

SRI-CSL/solidityOfficial100%
GPL-3.0

This is solc-verify, a modular verifier for Solidity.

5316C++, SolidityNov 17, 20183 years agoGPL-3.0
ethereumformal-specificationformal-verificationsolidity

Similar Papers

Cite this paper

@article{hajdu2019solcverify,
  title  = {solc-verify: A Modular Verifier for Solidity Smart Contracts},
  author = {Ákos Hajdu and Dejan Jovanović},
  year   = {2019},
  eprint = {1907.04262},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1907.04262}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1907.04262.svg)](https://codeofpaper.com/paper/1907.04262)

Discussion