Skip to main content
Voltaire is a polyglot Ethereum primitives, cryptography, and EVM monorepo with a Zig core, Rust/C cryptographic backends, a TypeScript SDK (@tevm/voltaire), an Effect 4 layer (voltaire-effect), and native bindings for Go, Python, Rust, Swift, and C.

Quick Start

Workspace Packages

Core Engineering Rules

  1. No stubs or skipped tests. Every committed test passes; broken or unimplemented tests are fixed or removed.
  2. Module imports in Zig. Import @import("primitives"), @import("crypto"), or @import("precompiles") — never relative cross-module paths like ../primitives/....
  3. Explicit memory ownership in Zig. Functions that allocate take an explicit std.mem.Allocator; callers free returned slices.
  4. Zero-overhead branded types in TypeScript. Primitives are branded Uint8Array or string types with sideEffects: false subpath exports.
  5. Cross-language parity. Zig, TypeScript, WASM, and native FFI outputs must match byte-for-byte on shared test vectors.

Essential Commands

Developer Guides

Architecture

Layered runtime architecture, Zig module graph, and memory ownership.

Codebase Map

Directory-by-directory layout of every package and build output.

Build System

build.zig steps, Cargo features, pnpm scripts, and cross-compilation.

WASM

WASM build modes, linear memory protocol, bundler config, and limitations.

Multi-Language

C ABI, Bun FFI, Rust crypto_wrappers, C libraries, and Swift/Go/Python bindings.

Testing

Zig inline tests, Vitest suites, cross-validation, fuzzing, and benchmarks.

TypeScript Patterns

Branded types, dual APIs, JSDoc typing, and tree-shaking rules.

Zig Patterns

Allocator conventions, error sets, comptime patterns, and inline tests.