Formally Verified EVM Block-Optimizations

Elvira Albert, Samir Genaim, Daniel Kirchner, Enrique Martin-Martin

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

5 Scopus citations

Abstract

The efficiency and the security of smart contracts are their two fundamental properties, but might come at odds: the use of optimizers to enhance efficiency may introduce bugs and compromise security. Our focus is on EVM (Ethereum Virtual Machine) block-optimizations, which enhance the efficiency of jump-free blocks of opcodes by eliminating, reordering and even changing the original opcodes. We reconcile efficiency and security by providing the verification technology to formally prove the correctness of EVM block-optimizations on smart contracts using the Coq proof assistant. This amounts to the challenging problem of proving semantic equivalence of two blocks of EVM instructions, which is realized by means of three novel Coq components: a symbolic execution engine which can execute an EVM block and produce a symbolic state; a number of simplification lemmas which transform a symbolic state into an equivalent one; and a checker of symbolic states to compare the symbolic states produced for the two EVM blocks under comparison. Artifact: https://doi.org/10.5281/zenodo.7863483

Original languageEnglish
Title of host publicationComputer Aided Verification - 35th International Conference, CAV 2023, Proceedings
EditorsConstantin Enea, Akash Lal
PublisherSpringer Science and Business Media Deutschland GmbH
Pages176-189
Number of pages14
ISBN (Print)9783031377082
DOIs
StatePublished - 1 Jan 2023
Externally publishedYes
Event35th International Conference on Computer Aided Verification, CAV 2023 - Paris, France
Duration: 17 Jul 202322 Jul 2023

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume13966 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference35th International Conference on Computer Aided Verification, CAV 2023
Country/TerritoryFrance
CityParis
Period17/07/2322/07/23

Keywords

  • Coq
  • Ethereum Virtual Machine
  • Optimization
  • Smart Contracts
  • Theorem Proving

ASJC Scopus subject areas

  • Theoretical Computer Science
  • General Computer Science

Fingerprint

Dive into the research topics of 'Formally Verified EVM Block-Optimizations'. Together they form a unique fingerprint.

Cite this