code wiki / _hdl_build / nx_codata_foundation.nx
nx_codata_foundation.nx source
↩ module page · 20 lines · 894 B
1// nx_codata_foundation.nx -- FOUNDATION the ingested NIST CODATA data (thin caller over the reusable
2// nx_ingest_foundation lib). CID + ed25519 signed "downloaded" provenance + lineage-walk to god; GREEN iff
3// verify ALLOWs, 3 tampers REJECT, transport lineage reaches ORIGIN. license_tier: ORIGINAL
4import "nx_syscalls.nx"
5import "nx_ingest_foundation.nx"
6
7func main() -> i64 {
8 let cid: *u8 = sys_mmap(128)
9 let ok: i64 = ingest_foundation(
10 "knowledge/fetched/nist/codata_allascii.txt" as *u8,
11 "https://physics.nist.gov/cuu/Constants/Table/allascii.txt" as *u8,
12 "2026-06-19" as *u8,
13 "NIST CODATA 2022 / CIAAW" as *u8,
14 "knowledge/fetched/nist/codata_nist.cred" as *u8,
15 "knowledge/status/codata_foundation.log" as *u8,
16 "CODATA-FOUNDATION" as *u8,
17 cid)
18 if ok == 1 { sys_exit(0); return 0 }
19 sys_exit(1); return 1
20}