code wiki / (root) / nx_sealed_sender_gate.nx

nx_sealed_sender_gate.nx

buildroot/runtime/nx_sealed_sender_gate.nx

9101 B168 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_sealed_sender_gate.nx -- REFEREE for C9 (nx_sealed_sender, contract ss_seal). END-TO-END: keygens two Ed25519 identities, seals a message, and forks the PROMOTED elf to prove the pre-declared done-rule: the sender's identity appears in NO relay-readable byte -- proven by SCANNING the actual envelope file on disk (the relay's own capture) for the sender pubkey and the plaintext. license_tier: ORIGINAL expect_exit: 0

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_tool_run.nx nx_gate_verdict.nx nx_sealed_sender_gate.nx

imports: nx_syscalls.nxnx_tool_run.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main gv_ctr sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ gv_head gv_puts sys_write ↻ sys_mkdir sys_mmap ↻ ssg_run tr_run_capture sys_mmap ↻ sys_pipe2 sys_fork sys_close sys_dup3 sys_execve_clean sys_close_inherited sys_close_inherited_proc sys_openat_rd sys_mmap ↻ sys_getdents64 dirent_reclen sys_close ↻ sys_munmap sys_execve tr_exec_failed

structs

none

consts

9const SSG_CAP: i64 = 65536

functions

10func ssg_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
11func ssg_count(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: main calls 1: ssg_len
24func ssg_after(buf: *u8, n: i64, after: *u8, out: *u8) -> i64
called by 1: main calls 1: ssg_len
41func ssg_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
49func ssg_run(elf: *u8, av: *i64, out: *u8, ol: *i64) -> i64 { return tr_run_capture(elf, av, out, SSG_CAP, ol) }
called by 1: main calls 1: tr_run_capture
50func main(argc: i64, argv: *i64) -> i64