code wiki / _hdl_build / nx_sha256_wasm_vm_gate.nx

nx_sha256_wasm_vm_gate.nx

buildroot/runtime/_hdl_build/nx_sha256_wasm_vm_gate.nx

3344 B51 linesdepth 3pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic sha256
docsdependenciesstructsconstsfunctions

about

nx_sha256_wasm_vm_gate.nx -- proves the byte-width backend fix GENERALIZES beyond the codec, on security-critical crypto, and demonstrates the sovereign WASM VM as a general verifier. nx_sha256_wasm was BLOCKED since 2026-05-16 on the WAT backend memory codegen (its header documents the fallback to browser crypto = sovereignty debt). We compile it with the fixed backend, EXECUTE the shipped wasm in nx_wasm_vm, and check SHA-256 of abc against the FIPS KAT.

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_gate_emit_lib.nx nx_wasm_vm.nx nx_gate_verdict.nx nx_sha256_wasm_vm_gate.nx

imports: nx_syscalls.nxnx_gate_emit_lib.nxnx_wasm_vm.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main g_puts sys_write sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close sys_exit ↻ g_pn sys_mmap ↻ sys_write ↻ g_check g_puts ↻ gv_ctr sys_mmap ↻ gv_verdict gv_note_bare_rate gv_bare_rate gv_at gv_obj_has_n gv_at ↻ gv_puts

structs

none

consts

none

functions

10func main() -> i64