code wiki / (root) / nx_connect_e2e_proof.nx

nx_connect_e2e_proof.nx

buildroot/runtime/nx_connect_e2e_proof.nx

2972 B79 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic connect
docsdependenciesstructsconstsfunctions

about

nx_connect_e2e_proof.nx -- LIVE-LOOP witness for the full-E2E CONNECT proof: computes the EXACT bytes the browser client produces (the wasm mcw_* API is a thin wrapper over these same native mc_* functions, and the wasm is separately proven bit-exact vs RFC 8439 in nx_media_crypt_wasm_gate). Used to drive the two-user proof over the PUBLIC edge: seal as Alice -> POST -> fetch as Bob -> open -> plaintext must round-trip. license_tier: ORIGINAL nx_connect_e2e_proof seal <keyhex64> <seq> <plaintext> -> ciphertext hex on stdout nx_connect_e2e_proof open <keyhex64> <seq> <cthex> -> plaintext on stdout

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_media_crypt.nx nx_connect_e2e_proof.nx

imports: nx_syscalls.nxnx_media_crypt.nx

imported by: nobody (leaf or entry point)

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

main sys_write ep_slen sys_mmap mc_key mc_hexval mc_nonce ep_atoi ep_seq mc_xform mc_block mc_u32le mc_qr mc_rotl mc_wr32le ep_w sys_write ↻ mc_hexval ↻

structs

none

consts

11const EP_MAX: i64 = 4096

functions

13func ep_w(s: *u8, n: i64) -> i64 { sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
14func ep_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: main
15func ep_seq(a: *u8, b: *u8) -> i64
called by 1: main
21func ep_atoi(s: *u8) -> i64
called by 1: main
32func main(argc: i64, argv: *i64) -> i64