code wiki / _hdl_build / nx_x25519_wasm_vm_gate.nx

nx_x25519_wasm_vm_gate.nx

buildroot/runtime/_hdl_build/nx_x25519_wasm_vm_gate.nx

3813 B55 linesdepth 3pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic x25519
docsdependenciesstructsconstsfunctions

about

nx_x25519_wasm_vm_gate.nx -- KAT-verify the E2E chat's KEY AGREEMENT primitive: run the shipped nx_x25519.wasm in the sovereign VM on RFC 7748 ยง5.2 test vector 1 and check the scalar-mult output. If GREEN, the byte-width + OP_NOT backend fixes produced a CORRECT x25519 wasm -- the foundation of the hybrid-PQ E2E session is sound, proven on the shipped bytes. nx_x25519_scalarmult(scalar32, point32, scratch>=1024, out32).

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_gate_emit_lib.nx nx_wasm_vm.nx nx_x25519_wasm_vm_gate.nx

imports: nx_syscalls.nxnx_gate_emit_lib.nxnx_wasm_vm.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 sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_exit wm_new sys_mmap ↻ wm_parse sys_mmap ↻ wv_u8 wv_uleb wm_find_export wm_name_eq g_pn sys_mmap ↻ sys_write ↻ g_check g_puts ↻ wm_run wm_find_export ↻ sys_mmap ↻ wm_call sys_mmap ↻ wv_u8 ↻ wm_memo_get wm_match_end sys_mmap ↻ sys_write ↻ sys_exit ↻ wv_u8 ↻ wm_skip_imm wv_u8 ↻ wv_uleb ↻ wv_sleb

structs

none

consts

none

functions

9func main() -> i64