// JS (default) - works everywhereimport { Address, Keccak256 } from '@tevm/voltaire'// WASM - for browser/edge crypto performanceimport { Address, Keccak256 } from '@tevm/voltaire/wasm'// Native - for Bun maximum performanceimport { Address, Keccak256 } from '@tevm/voltaire/native'
Important: Voltaire requires native C/Rust libraries that must be built before use. zig fetch alone will not work because the Rust crypto wrappers (libcrypto_wrappers.a) are built at compile time via Cargo.
Option 1: Git Submodule (Recommended)Add as a git submodule in your project:
The Voltaire API is consistent across all languages.
TypeScript
Zig
C
Swift
Kotlin (Experimental)
Go (Experimental)
Python (Experimental)
import { Address } from '@tevm/voltaire'const address = Address('0x742d35Cc6634C0532925a3b844Bc9e7595f51e3e')Address.toChecksummed(address)Address.toHex(address)Address.isZero(address)Address.equals(address, otherAddress)// Also available as instance methodsaddress.toChecksummed()address.toHex()address.isZero()address.equals(otherAddress)