Research project produces first complete formal semantics of Ethereum Virtual Machine

IOHK, leading blockchain research, and development company, has announced that its research project with the University of Illinois at Urbana-Champaign (UIUC) has modeled the world’s first complete fully-executable formal semantics of the Ethereum Virtual Machine (EVM). The research produced an innovative framework, called KEVM, for formal execution, analysis, and verification of EVM smart contracts.

The Ethereum Foundation and IC3, an initiative of faculty members at Cornell University, Cornell Tech, UC Berkeley, the University of Illinois at Urbana-Champaign, and the Technion, selected KEVM as the winner of its immersive, week-long blockchain development event called the “IC3-Ethereum Crypto Boot Camp.” Led by Professor Grigore Rosu and his Ph.D. student Everett Hildenbrandt, the IOHK-funded KEVM research project competed against nine other world-leading teams to emerge the winner.

Prof. Grigore Rosu of the UIUC’s Siebel Center for Computer Science and CEO of Runtime Verification said:

“The pressing need to address repeated security vulnerabilities and high-profile failures in Ethereum smart contracts hasn’t been adequately addressed by existing formal verification and program analysis tools. No fully-formal, rigorous, comprehensive, and executable semantics of EVM existed until now, leaving a lack of rigor on which to base such tools.”

“I am delighted to announce KEVM, the first complete and fully executable formal semantics of the Ethereum Virtual Machine. KEVM, which allows us to formally verify properties of EVM-based smart contracts in a correct-by-construction and cost-effective manner, is significant because Ethereum users need the guarantees of formal verification to safeguard against financial losses due to software bugs. This work serves as a foundation for the development of new smart contract analysis tools; more importantly, it gives us invaluable insight on how to design better programming languages for smart contracts.”

KEVM not only passes the official 40,683-test stress test suite for EVM implementations but also reveals ambiguities and potential sources of error in the existing on-paper formalization of EVM semantics.

Prof. Rosu continued:

“KEVM has demonstrated that our unique approach based on K formal executable semantics is feasible and not computationally restrictive. We hope our work serves as a strong basis for the development of a wide range of useful, formally-derived tools for Ethereum, like model checkers, certified compilers, and program equivalence checkers.”

Formal verification is an integral aspect of IOHK’s approach to developing cryptocurrencies, as the company recognizes that only mathematical proofs can guarantee correctness.

IOHK selected to invest in the research and development of a formal semantics of the EVM based on the K framework due to K’s language-independent nature, wide potential application, and its success in academia, where K has been used to formalize several real-world languages, like JavaScript, Java, C, Python, and PHP. Furthermore, several language-independent analysis tools already exist for K. Notably, the K framework supplies a semantic debugger, symbolic execution engine, and verification infrastructure for each developed language. Beyond academia, this work has been successfully commercialized at Runtime Verification, Inc. where tools like RV-Match, an automatic C analyzer which includes checks for undefined behavior, are developed as applications of the K semantics of C.

Development of KEVM continues to be open-source, in line with IOHK’s mission to improve and mature the blockchain industry as a whole. IOHK recognizes the importance of open development to the security of the Ethereum community at large and is committed to ensuring this work is available to everyone for use and audit.

IOHK CEO Charles Hoskinson said:

“This research has given us a great degree of insight into what one should do to redesign the EVM to make it more secure, faster, and more efficient. It will now be easier to build tooling for the EVM, such as verified compilers. This white paper is the result of our first wave of research into this area. Based on this research, IOHK will begin building prototypes and our hope is to have an EVM 2.0 ready next year, as part of Cardano, a product we are currently building.”

Notable attendees of the IC3-Ethereum Crypto Boot Camp where the KEVM research was awarded first prize include Ethereum Co-Founder and Chief Scientist Vitalik Buterin, Ethereum Foundation Executive Director Ming Chan, and IC3 Executive Director Jim Ballingall.

Related News

Leave Comment