Skip to main content


Towards verifying ethereum smart contract bytecode in isabelle/HOL


Sidney Amani, Maksym Bortin, Mark Staples and Myriam Begel



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

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


Served by Apache on Linux on seL4.