code wiki / (root) / nx_mse_wire_gate.nx

nx_mse_wire_gate.nx

buildroot/runtime/nx_mse_wire_gate.nx

5334 B77 linesdepth 7pulls 15 transitivereach 0 importersview sourcekind gate/prooftopic mse
docsdependenciesstructsconstsfunctions

about

nx_mse_wire_gate.nx -- loopback gate for the reusable MSE wire library (nx_mse_wire). Proves: mse_connect <-> mse_accept complete the handshake, then mse_write/mse_read carry an ENCRYPTED BitTorrent-handshake + payload BOTH directions, decrypting byte-perfect; plus the plaintext/MSE demux classifier. This is the API the seeder + downloader adopt. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_mse_wire.nx nx_connect.nx nx_gate_verdict.nx nx_mse_wire_gate.nx

imports: nx_mse_wire.nxnx_connect.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 md_p mse_classify_first_byte wg_sockaddr sys_socket sys_setsockopt sys_set_socket_timeout sys_mmap sys_setsockopt ↻ sys_munmap sys_bind sys_listen sys_fork sys_accept mw_read_n sys_read bi_zero mse_accept_pfx mse_accept_dh md_load_p md_hex2bytes md_hv bi_from_bytes_be bi_zero ↻ mw_read_n ↻ bi_from_bytes_be ↻ mse_dh_public bi_zero ↻ bi_modexp bi_zero ↻ bi_copy bi_mod bi_zero ↻ bi_shl1 bi_cmp bi_sub bi_mul bi_zero ↻ bi_to_bytes_be mw_write_n

structs

none

consts

9const WG_PORT: i64 = 53911

functions

11func wg_sockaddr(sa: *u8, port: i64, a: i64, b: i64, c: i64, d: i64) -> i64
called by 1: main
16func wg_eq(a: *u8, b: *u8, n: i64) -> i64 { var i: i64=0; while i<n { if a[i]!=b[i] { return 0 } i=i+1 } return 1 }
called by 1: main
18func main() -> i64