Skip to main content

Towards verifying Ethereum smart contract bytecode in Isabelle/HOL

Authors

Sidney Amani, Myriam Begel, Maksym Bortin and Mark Staples

DATA61

Abstract

Blockchain technology has increasing attention in research and across many industries. The Ethereum blockchain offers smart contracts, which are small programs defined, executed, and recorded as transactions in the blockchain transaction history. These smart contracts run on the Ethereum virtual machine (EVM) and can be used to encode agreements, transfer assets, and enforce integrity conditions in relationships between parties. Smart contracts can carry financial value, and are increasingly used for safety-, security-, or missioncritical purposes. Errors in smart contracts have and will lead to loss or harm. Formal verification can provide the highest level of confidence about the correct behaviour of smart contracts. In this paper we extend an existing EVM formalisation in Isabelle/HOL by a sound program logic at the level of bytecode. We structure bytecode sequences into basic blocks of straight-line code and create a program logic to reason about these. This abstraction is a step towards control of the cost and complexity of formal verification of EVM smart contracts.

BibTeX Entry

  @inproceedings{Amani_BBS_18,
    publisher        = {ACM},
    doi              = {10.1145/3167084},
    isbn             = {978-1-4503-55},
    booktitle        = {CPP},
    author           = {Amani, Sidney and Begel, Myriam and Bortin, Maksym and Staples, Mark},
    month            = jan,
    year             = {2018},
    date             = {2018-1-8},
    title            = {Towards Verifying {Ethereum} Smart Contract Bytecode in {Isabelle}/{HOL}},
    pages            = {66-77},
    address          = {Los Angeles}
  }

Download

Served by Apache on Linux on seL4.