code wiki / _hdl_build / nx_docportal_at_rest_gate.nx
nx_docportal_at_rest_gate.nx
buildroot/runtime/_hdl_build/nx_docportal_at_rest_gate.nx
about
nx_docportal_at_rest_gate.nx -- MEASURED proof that the P1 at-rest SWAP fired at the REAL store site: it drives
the pure router da_handle (the exact code changed in nx_docportal_admin_lib) with crafted upload requests and
inspects the sovereign store. Fresh nonce domain per run. STANDALONE -- no socket, no daemon process, no deploy.
T1 POST /admin/upload visibility=private -> 200 UPLOADED, and the STORED doc:<cid> begins with the NXENC1 magic
(the confidential upload is ENCRYPTED at rest, not plaintext).
T2 doc_get(private) round-trips the encrypted doc BYTE-IDENTICAL (P2's private route will read exactly this).
T3 POST /admin/upload visibility=public -> 200 UPLOADED, and the STORED doc:<cid> is PLAINTEXT (no magic, equals
the body) -- the PUBLIC corpus path is unchanged at the same call site.
Print pass=3 + GREEN/RED, append knowledge/status/dp_at_rest_wire_gate.log. license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_docportal_admin_lib.nxnx_doc_at_rest.nxnx_docportal_lib.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 14 | func g_puts(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 1: main |
| 15 | func g_num(v: i64) -> i64 called by 1: main |
| 21 | func g_w(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 } called by 1: main |
| 22 | func g_wn(fd: i64, v: i64) -> i64 called by 1: main |
| 28 | func g_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 29 | func g_cat(out: *u8, o: i64, s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { out[o] = s[i]; o = o + 1; i = i + 1 } return o } called by 1: main |
| 30 | func g_catnum(out: *u8, o: i64, v: i64) -> i64 called by 1: main |
| 36 | func g_eqbytes(a: *u8, b: *u8, n: i64) -> i64 { var i: i64 = 0; while i < n { if a[i] != b[i] { return 0 } i = i + 1 } return 1 } called by 1: main |
| 37 | func g_starts(buf: *u8, n: i64, s: *u8) -> i64 { let sn: i64 = g_slen(s); if n < sn { return 0 } var i: i64 = 0; while i < sn { if buf[i] != s[i] { return 0 } i = i + 1 } return 1 } |
| 38 | func g_contains(hay: *u8, hn: i64, ndl: *u8) -> i64 |
| 51 | func main() -> i64 |