code wiki / _hdl_build / nx_evattest_gate.nx

nx_evattest_gate.nx

buildroot/runtime/_hdl_build/nx_evattest_gate.nx

11691 B221 linesdepth 10pulls 13 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_evattest_gate.nx -- proves the signed-attestation layer accepts a genuine operator sign-off and REFUSES every way of faking one. The clause it defends (`require_human`) is the single thing standing between "an agent certified its own work" and a PROVEN verdict, so every refusal path here is negative-controlled: a gate that only ever demonstrates acceptance has proven nothing. license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_evattest.nx nx_evattest_gate.nx

imports: nx_syscalls.nxnx_evattest.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap w sys_write ed25519_pub_from_priv sys_mmap ↻ ed25519_sha512 sys_mmap ↻ sha512_init sha512_update sha512_blk_set_byte blk_get_i64 blk_set_i64 sha512_compress sys_mmap ↻ blk_get_i64 ↻ sha512_gamma0 rotr64_v shr64_v sha512_gamma1 rotr64_v ↻ shr64_v ↻ sha512_sigma1 rotr64_v ↻ sha512_ch sha512_k sha512_sigma0 rotr64_v ↻ sha512_maj sha512_final sha512_blk_set_byte ↻ sha512_compress ↻ ge_p3_alloc sys_mmap ↻ fe_alloc nx_scratch nx_scratch_init sys_mmap ↻ nx_scratch_oom sys_write ↻

structs

none

consts

none

functions

9func w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 2: ckmain calls 1: sys_write
10func wn(v: i64) -> i64 { let t: *u8=sys_mmap(28); var m: i64=v; var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} let b: *u8=sys_mmap(28); var i: i64=0; while i<k{b[i]=t[k-1-i];i=i+1} sys_write(1,b,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
11func ck(pass: i64, label: *u8, fails: *i64) -> i64
called by 1: main calls 1: w
16func hexout(src: *u8, n: i64, dst: *u8, off: i64) -> i64
called by 1: main
28func cat(dst: *u8, off: i64, s: *u8) -> i64
called by 1: main
35func main() -> i64