code wiki / _hdl_build / nx_email_dns_gate.nx
nx_email_dns_gate.nx
buildroot/runtime/_hdl_build/nx_email_dns_gate.nx
about
nx_email_dns_gate.nx -- generate the jasonewest.com mail DNS artifacts.
Generates a REAL ed25519 DKIM keypair (sovereign csprng + ed25519),
emits the DNS zone (nx_dns_zone), VERIFIES the key actually signs+
verifies (so the published pubkey will validate this signer), checks
the zone structure, and writes two artifacts:
knowledge/status/jasonewest_dns_zone.txt <- publish these records
knowledge/status/jasonewest_dkim_priv.key <- SECRET: keep to sign outbound
Evidence -> knowledge/status/email_dns.log (DNSGATE ... verdict=GREEN)
license_tier: ORIGINAL
dependencies 5 imports · 0 importers
imports: nx_email_dns.nxnx_email_auth.nxnx_csprng.nxnx_base64.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
| 18 | const DNS_LOG: *u8 = "knowledge/status/email_dns.log" |
functions
| 20 | func ew(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 } |
| 21 | func epf(fd: i64, label: *u8, pass: i64) -> i64 { ew(fd, label); if pass == 1 { ew(fd, "PASS" as *u8) } else { ew(fd, "FAIL" as *u8) } return 0 } |
| 22 | func slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: contains |
| 23 | func contains(hay: *u8, hlen: i64, needle: *u8) -> i64 |
| 33 | func writefile(path: *u8, buf: *u8, n: i64) -> i64 |
| 41 | func hexbyte(out: *u8, oi: i64, b: i64) -> i64 called by 1: main |
| 48 | func main() -> i64 |