Skip to content

evmts/zevm

ZEVM

ZEVM is a Zig Ethereum client with two runtime modes:

  • Trusted mode: a writable local dev node with deterministic dev accounts, mining controls, transaction submission, snapshots, and local state mutation helpers.
  • Light mode: a proof-backed, consensus-anchored read-only client for execution reads.

Forking is trusted-mode configuration, not a separate runtime mode.

Installation

ZEVM builds from pinned Zig package-manager dependencies. Requires Zig 0.15.2 or newer plus Rust/Cargo for Voltaire's Rust crypto archive.

Build From Source

git clone git@github.com:evmts/zevm.git
cd zevm
zig build --fetch
zig build dependency-preflight -- --zig-version 0.15.2
zig build

The binary is installed to ./zig-out/bin/zevm.

Release-style artifacts for the selected target:

zig build release-binaries -Doptimize=ReleaseSafe
zig build c-ffi
zig build npm-platform-artifacts -Doptimize=ReleaseSafe

Outputs are written under zig-out/dist/, zig-out/lib, zig-out/include, and zig-out/npm/prebuilds/.

For pinned release tuples, mode-specific startup, and runtime configuration, start with docs/quickstart/installation.mdx.

Documentation

The public docs are authored under docs/, with Astro/Starlight site sources mirrored under docs/src/content/docs/.

Canonical contract sources:

If implementation, tests, or public docs diverge from those specs, treat the mismatch as release-blocking unless the behavior is explicitly moved to deferred or out-of-contract docs.

Contributing

npm --prefix npm/zevm install --ignore-scripts
zig build test
zig build verify-fast
zig build c-smoke
zig build npm-smoke
npm --prefix npm/zevm run typecheck

Behavior changes are docs-first: update docs/specs/prd.md and docs/specs/json-rpc-contract.md before landing code that changes startup, runtime modes, JSON-RPC behavior, release metadata, the C ABI, or npm distribution. The full process is in docs/specs/docs-first-process.md.

See CONTRIBUTING.md for the local workflow, release gates, C ABI, and npm package notes.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors