Skip to main content

Try it Live

Run ENS examples in the interactive playground

ENS and WASM

Status

The TypeScript Ens module has no WASM entry point. There is no Ens export from @tevm/voltaire/wasm, no *.wasm.ts file for Ens, and no Ens function in the WASM loader or the C API. The Zig package (voltaire-zig) contains an ENS module at src/primitives/Ens/ens.zig built on z-ens-normalize. It is not exported through c_api.zig and is not reachable from TypeScript.

Using WASM keccak256 for hashing

The Namehash and Labelhash factories accept any (data: Uint8Array) => Uint8Array keccak256 function. Keccak256Wasm.hash from @tevm/voltaire/wasm matches that signature:
Keccak256Wasm.hash throws WASM not initialized. Call Keccak256Wasm.init() first. if you call it before init() resolves. Normalization still runs in JavaScript.

See Also