code wiki / _hdl_build / nx_germinate_test.nx

nx_germinate_test.nx

buildroot/runtime/_hdl_build/nx_germinate_test.nx

5152 B109 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_germinate_test.nx -- the SEED's per-piece GERMINATION trust layer. The seed torrent-streams capability pieces onto the hardware; each piece must clear three gates before it joins the growing system: 1. INTEGRITY -- the received bytes hash to the manifest hash (FNV-1a), exactly like a torrent piece hash. A corrupted/tampered piece is REJECTED HERE and NEVER RUN (you don't execute untrusted bytes). 2. CORRECTNESS-- its proof gate passes 1:1 (the Engineer leg). 3. GOVERNANCE -- the 3->2->1 crew clears it (verified + safe + recorded). Only an integrity-clean, proven, governed piece is ADMITTED. This is the same trust the research-ingestion uses, pointed at the streamed capability instead. Known answer: 3 received pieces -> 1 ADMITTED, 2 REJECTED (1 corrupted-hash, 1 unproven). exit 0.

dependencies 1 imports · 0 importers

nx_crew_council.nx nx_germinate_test.nx

imports: nx_crew_council.nx

imported by: nobody (leaf or entry point)

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

main cc_puts sys_write gm_hash gm_slen gm_germinate cc_puts ↻ gm_hash ↻ cc_set cc_council gm_corrupt

structs

none

consts

17const GM_FNV_OFFSET: i64 = 0 - 3750763034362895579 // 0xcbf29ce484222325
18const GM_FNV_PRIME: i64 = 1099511628211 // 0x100000001b3

functions

20func gm_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: main
23func gm_hash(s: *u8, len: i64) -> i64
called by 2: gm_germinatemain
35func gm_corrupt(src: *u8, len: i64) -> *u8
called by 1: main
44func gm_germinate(name: *u8, recv: *u8, len: i64, manifest_hash: i64, proof_ok: i64,
called by 1: main calls 4: cc_putsgm_hashcc_setcc_council
63func main() -> i64