Table of Contents
Implementation of Ethereum Virtual Machine in Golang, with the following instructions supported:
- PUSH1/PUSH2/PUSH3/PUSH32
- MSTORE/MSTORE8
- ADD/MUL/SDIV/EXP
Download and install Golang 1.19 (or higher).
- Navigate to
evm-implementation-in-go/
:cd /path/to/folder/evm-implementation-in-go/
- Get dependencies:
go mod tidy
- Run the app:
go run main.go # use "--verbose" flag to get additional logs go run main.go --verbose
- CD into
evm/
to run tests:cd evm/ go test
Thank you!