code wiki / _hdl_build / nx_png_textw_gate.nx

nx_png_textw_gate.nx

buildroot/runtime/_hdl_build/nx_png_textw_gate.nx

3676 B60 linesdepth 7pulls 11 transitivereach 0 importersview sourcekind gate/prooftopic png
docsdependenciesstructsconstsfunctions

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

nx_png_textw.nx nx_store_ingest.nx nx_syscalls.nx nx_png_textw_gate.nx

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

main sys_mmap pg_basepng png_insert_genrec pw_find_iend pw_text pw_slen pg sys_write sys_exit nx_store_ingest_compute_ci sys_mmap ↻ nx_store_ingest_harvest sys_mmap ↻ _pe_pngchunk_rdbe _pe_pngtext_locate nx_store_ingest_keq canon_encode sys_mmap ↻ cc_cmp cc_w32 cc_len sys_munmap cid_of sys_mmap ↻ sha256_digest sys_mmap ↻ sha256_init sys_mmap ↻ sha256_k sha256_update sha256_compress_ni_blocks blk_set_byte sha256_compress sha256_compress_ni blk_word sha256_final blk_set_byte ↻ sha256_compress ↻ cid_from_digest

structs

none

consts

none

functions

11func pg(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 calls 1: sys_write
12func 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
15func pg_basepng(b: *u8) -> i64
called by 1: main
30func main() -> i64