code wiki / _hdl_build / nx_germinate_test.nx
nx_germinate_test.nx
buildroot/runtime/_hdl_build/nx_germinate_test.nx
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
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
structs
| none |
consts
| 17 | const GM_FNV_OFFSET: i64 = 0 - 3750763034362895579 // 0xcbf29ce484222325 |
| 18 | const GM_FNV_PRIME: i64 = 1099511628211 // 0x100000001b3 |
functions
| 20 | func gm_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: main |
| 23 | func gm_hash(s: *u8, len: i64) -> i64 |
| 35 | func gm_corrupt(src: *u8, len: i64) -> *u8 called by 1: main |
| 44 | func gm_germinate(name: *u8, recv: *u8, len: i64, manifest_hash: i64, proof_ok: i64, |
| 63 | func main() -> i64 |