code wiki / _hdl_build / nx_png_textw_gate.nx
nx_png_textw_gate.nx
buildroot/runtime/_hdl_build/nx_png_textw_gate.nx
about
nx_png_textw_gate.nx -- proves the sovereign PNG tEXt writer produces ingest-readable,
structurally-valid PNGs. Composes R1 (nx_store_ingest_compute_cid): inject GENREC into a real
(no-tEXt) PNG -> nx_store_ingest harvests the 6 factors -> a CID is computed; IEND stays terminal;
a different injected prompt -> a different CID end-to-end. NO fake green: a writer that mangled
the chunk structure would make compute_cid fail (<0) -> RED.
license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_png_textw.nxnx_store_ingest.nxnx_syscalls.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
| 11 | func pg(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 12 | func pg_cideq(a: *u8, b: *u8) -> i64 { var i: i64=0; while i<69 { if (a[i]&0xff)!=(b[i]&0xff){return 0} i=i+1 } return 1 } called by 1: main |
| 15 | func pg_basepng(b: *u8) -> i64 called by 1: main |
| 30 | func main() -> i64 |