code wiki / _hdl_build / nx_email_dns_gate.nx

nx_email_dns_gate.nx

buildroot/runtime/_hdl_build/nx_email_dns_gate.nx

5042 B115 linesdepth 10pulls 18 transitivereach 0 importersview sourcekind gate/prooftopic email
docsdependenciesstructsconstsfunctions

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

nx_email_dns.nx nx_email_auth.nx nx_csprng.nx nx_base64.nx nx_syscalls.nx nx_email_dns_gate.nx

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

main sys_mmap nx_csprng_fill sys_mmap ↻ nx_csprng_urandom_path sys_openat_rd sys_read sys_close ed25519_pub_from_priv sys_mmap ↻ ed25519_sha512 sys_mmap ↻ sha512_init sha512_update sha512_blk_set_byte blk_get_i64 blk_set_i64 sha512_compress sys_mmap ↻ blk_get_i64 ↻ sha512_gamma0 rotr64_v shr64_v sha512_gamma1 rotr64_v ↻ shr64_v ↻ sha512_sigma1 rotr64_v ↻ sha512_ch sha512_k sha512_sigma0 rotr64_v ↻ sha512_maj sha512_final sha512_blk_set_byte ↻ sha512_compress ↻ ge_p3_alloc sys_mmap ↻ fe_alloc nx_scratch

structs

none

consts

18const DNS_LOG: *u8 = "knowledge/status/email_dns.log"

functions

20func 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 }
called by 2: epfmain calls 1: sys_write
21func 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 }
called by 1: main calls 1: ew
22func slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: contains
23func contains(hay: *u8, hlen: i64, needle: *u8) -> i64
called by 1: main calls 1: slen
33func writefile(path: *u8, buf: *u8, n: i64) -> i64
41func hexbyte(out: *u8, oi: i64, b: i64) -> i64
called by 1: main
48func main() -> i64