8000 GitHub - evmts/guillotine-mini at ui · GitHub
[go: up one dir, main page]

Skip to content

About

Minimal, spec-first Ethereum Virtual Machine (EVM) in Zig — Frontier through Osaka, C/WASM ABI, Lean 4 oracle, built publicly on Smithers Cloud

Topics

Resources

Code of conduct

Contributing

Stars

11 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

342 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guillotine Mini

Minimal, spec‑focused EVM in Zig with rich tooling for execution‑spec tests, tracing, and diffing.

Quick Start

zig build           # build
zig build specs     # run execution‑spec tests
zig build test      # unit + specs

Use TEST_FILTER to run a subset:

TEST_FILTER="push0" zig build specs

Documentation

Test Status

Hardfork Status Notes
Frontier ✅ PASSING All tests pass
Homestead ✅ PASSING All tests pass
Byzantium ⚠️ Partial (85%) 54/352 failures (MODEXP edge cases)
Constantinople ⚠️ Partial (78%) 112/508 failures (CREATE2 return data)
Istanbul ⚠️ Partial (95%) 113/2165 failures (non-Blake2 tests)
Berlin ✅ PASSING All tests pass
Paris ✅ PASSING All tests pass
London ✅ PASSING All tests pass
Shanghai ⚠️ Partial (93%) 76/1090 failures (EIP-3860 initcode)
Cancun ⏱️ Timeout Needs investigation
Prague ✅ PASSING All tests pass
Osaka ✅ PASSING All tests pass

Recent Fix: BLAKE2F precompile (EIP-152) - resolved 246 test failures by correcting sigma permutation table ✅

Architecture

Minimal, correct, and well-tested Ethereum Virtual Machine (EVM) implementation in Zig, prioritizing specification compliance, clarity, and hardfork support (Berlin through Prague).

Components

  • EVM Orchestrator (src/evm.zig): State management, storage, gas accounting, call stack, transient storage
  • Execution Frame (src/frame.zig): Bytecode interpreter, stack, memory, PC, gas tracking
  • Host Interface (src/host.zig): Abstract state backend (balances, storage, code, nonces)
  • Hardfork Support (src/hardfork.zig): Hardfork detection and feature flags

Key Features

  • Specification Compliance: Validated against ethereum/tests (GeneralStateTests)
  • Hardfork Support: Berlin, London, Merge, Shanghai, Cancun, Prague
  • EIP Compliance: EIP-1153, EIP-3855, EIP-5656, EIP-4844, EIP-152 (BLAKE2F), and more
  • Tracing: Full EIP-3155 trace support for debugging
  • WASM Target: Compiles to WebAssembly (~193 KB)

License

See LICENSE file for details.

About

Minimal, spec-first Ethereum Virtual Machine (EVM) in Zig — Frontier through Osaka, C/WASM ABI, Lean 4 oracle, built publicly on Smithers Cloud

Topics

Resources

Code of conduct

Contributing

Stars

11 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0