Rust
# Cargo.toml: [lib] crate-type = ["cdylib"]; [profile.release] opt-level = "z", lto = true, panic = "abort", strip = true rustup target add wasm32-unknown-unknown cargo build --release --target wasm32-unknown-unknownA full core in Rust
Tools
Your game’s server is compiled by your own toolchain, as it is today. These tools run in your browser and tell you, before anything touches NEAR, whether the enclave will accept what you built.
For studios · step 2
Drop your compiled core. Your browser runs what the enclave’s pinned verifier will: no imports, the exports it calls, three generated worlds of 64 players served byte for byte, 1,200 seeded trades that must create and destroy nothing.
Or check one of the cores we sealed:
For studios · step 3
The world you seal: every player’s key and items, as your server exports it. This is the file the seal command reads.
For studios
Any language that compiles to wasm32 with no imports. These are the exact commands behind the five cores we sealed; each one is a working template.
# Cargo.toml: [lib] crate-type = ["cdylib"]; [profile.release] opt-level = "z", lto = true, panic = "abort", strip = true rustup target add wasm32-unknown-unknown cargo build --release --target wasm32-unknown-unknownA full core in Rust
# Zig 0.17 bundles clang: no system toolchain needed zig c++ -target wasm32-freestanding -O2 -g0 -nostdlib -std=c++20 \ -fno-exceptions -fno-rtti -Wl,--no-entry -Wl,--strip-all -o core.wasm core.cppA full core in C++
zig cc -target wasm32-freestanding -O2 -g0 -nostdlib -std=c11 \ -Wl,--no-entry -Wl,--strip-all -o core.wasm core.cA full core in C
# export exactly the interface and your moves zig build-exe core.zig -target wasm32-freestanding -fno-entry -O ReleaseSmall -fstrip \ --export=input_ptr --export=output_ptr --export=load --export=get_state --export=trade \ --export=player_count --export=get_key --export=join ... -femit-bin=core.wasmA full core in Zig
# TinyGo, with //export (not //go:wasmexport: the enclave calls no _initialize) tinygo build -target=wasm-unknown -gc=none -scheduler=none -panic=trap \ -opt=z -no-debug -o core.wasm . # then keep only your exports: scripts/build/keep-exports.mjsA full core in Go
For players
In a released game, with the key backup you saved while playing. Your browser brings the world back from NEAR and checks it, then looks for your key.
For everyone
Any escrow’s page: its keys, its code, what is sealed, its verification runs, and what anyone may do.