Secure Optimizations on Ethereum Bytecode Jump-Free Sequences
【Author】 Albert, Elvira; Genaim, Samir; Kirchner, Daniel; Martin-Martin, Enrique
【Source】IEEE TRANSACTIONS ON DEPENDABLE AND SECURE COMPUTING
【影响因子】6.791
【Abstract】Program optimization is a key factor for green software. In the context of the Ethereum blockchain, optimization is particularly relevant because there is a fee to pay for each EVM (Ethereum Virtual Machine) instruction executed and also there exist bytecode-size limitations for deploying the software on the blockchain. Still, optimization of EVM code is not as widely spread as one could imagine. This is at least partly due to the lack of trust in the correctness of the tools, as security is even more relevant than efficiency in the blockchain context in which bugs may cause huge economical losses. This article develops a formal verification framework using Coq to ensure the security of EVM optimizations performed on jump-free sequences of EVM bytecode. By means of Coq's theorem proving capabilities, we are able to automatically verify/certify that an optimized jump-free sequence of EVM opcodes is semantically equivalent to a given original one. We also present an extension to our framework that can handle inter-block optimizations that propagate global information across blocks. We have applied our tool to successfully prove the security of peephole optimizations performed by the standard Solidity compiler, and also to existing EVM superoptimization tools (namely GASOL and Superstack) in which we have found bugs that have been reported and fixed.
【Keywords】Coq; ethereum virtual machine; bytecode; smart contracts; optimization; theorem proving
【发表时间】2025 JUL-AUG
【收录时间】2025-09-20
【文献类型】
【主题类别】
--
评论