code wiki / _hdl_build / nx_aid_federation_gate.nx
nx_aid_federation_gate.nx
buildroot/runtime/_hdl_build/nx_aid_federation_gate.nx
about
nx_aid_federation_gate.nx -- GATE: cross-org charity federation (R-AID-R1). T1 the salted token is
DETERMINISTIC (same person -> same token) + DISTINCT (different people -> different tokens). T2 NO PII: the
submitted/stored value is a numeric token, never the name. T3 cross-org DETECTION (a token at 2 food banks =
double-claim). T4 no false match (single-org claimants not flagged; different people don't collide). T5
one-way (token != id) + FAIL-OPEN (only a review flag, no auto-deny). T6 coordinator review page shows tokens
+ org counts, NO names, sovereign, shipped. license_tier: ORIGINAL
dependencies 4 imports · 0 importers
imports: nx_aid_federation.nxnx_publisher.nxnx_seg_store.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
| 12 | const AF_STORE: *u8 = "knowledge/store/aidfed-" |
| 13 | const AF_SALT: *u8 = "nishi-federation-2026-coordinator-secret" |
| 14 | const AF_ALICE: *u8 = "alice|1990-03-01|78701" |
| 15 | const AF_BOB: *u8 = "bob|1985-07-22|78702" |
| 16 | const AF_CAROL: *u8 = "carol|1992-11-09|90001" |
| 17 | const AF_NOW: i64 = 110 |
| 18 | const AF_PERIOD: i64 = 30 |
| 19 | const AF_STAGE_FILE: *u8 = "knowledge/staging/aidfed/review.html" |
| 20 | const AF_LIVE_FILE: *u8 = "knowledge/publish/aidfed-live/review.html" |
functions
| 22 | func g_p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 23 | func g_i(v: i64) -> i64 |
| 31 | func g_alldigits(s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { if s[i] < (48 as u8) { return 0 } if s[i] > (57 as u8) { return 0 } i = i + 1 } if i == 0 { return 0 } return 1 } called by 1: main |
| 32 | func g_exists(path: *u8) -> i64 { let fd: i64 = sys_openat_rd(path); if fd < 0 { return 0 } sys_close(fd); return 1 } |
| 34 | func main() -> i64 |