Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yoichi Hirai has built a formal definition of the EVM in Coq which makes it possible to produce formal proofs of an Ethereum smart contract's correctness:

https://medium.com/@pirapira/ethereum-virtual-machine-for-co...



Thanks for showing me this!

I either missed it or it didn't exist last time I looked in to ETH. (About a year ago, pre-DAO.)

Either way, this is a major component of what I'd like to see in smart contracts! (The other two major pieces being a verified VM that supports that spec, and a developer library of "standard" contract pieces -- I don't recall being impressed by directly coding for the EVM, and easy-to-use contracts require a library of "standard legalese".)

Glad to see ETH is putting in the effort.


Most welcome! It was just released so you wouldn't have seen it last year. There was a major push toward more secure smart contacts, in particular using formal verification, after the DAO hack, and the efforts continue to this day.


Using my definition of EVM, I think it's already possible to create a small verified compiler.

My priority is on keeping the formal definition in sync with the Yellow Paper and the implementations.


It's a surprise to see you here! :) Thanks for the explanation. Good luck with your work!




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: