code wiki / _hdl_build / nx_connect_censor_transport.nx

nx_connect_censor_transport.nx

buildroot/runtime/_hdl_build/nx_connect_censor_transport.nx

4074 B63 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind tooltopic connect
docsdependenciesstructsconstsfunctions

about

nx_connect_censor_transport.nx -- CONNECT capability: censorship-resistant transport (CIQ vision frontier cell; incumbents "just get blocked" -- a fixed protocol signature lets DPI fingerprint + drop them). Nishi wraps the wire in the SOVEREIGN ChaCha20 stream so there is NO static signature for a DPI box to match, and the bytes look uniform/random. MEASURED head-to-head against a DPI filter that scans for the known protocol header: the naive transport is BLOCKED (signature found); Nishi's PASSES (no signature) and has higher byte-diversity. Exceed by construction. Reuses nx_chacha20.nx. 100% sovereign. license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_chacha20.nx nx_connect_censor_transport.nx

imports: nx_syscalls.nxnx_chacha20.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 chacha20_encrypt sys_mmap ↻ _chacha20_set_consts_key load_u32_le load_u32_le ↻ chacha20_perm_core store_u32_le contains distinct_bytes sys_mmap ↻ tw sys_write tn sys_mmap ↻ sys_write ↻ sys_exit

structs

none

consts

10const CTR_SIG: *u8 = "NXPROTO1" // the naive protocol's static header = the DPI fingerprint

functions

12func tw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
13func tn(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)} let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1} sys_write(1,bb,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
15func contains(hay: *u8, n: i64, needle: *u8) -> i64
called by 1: main
23func distinct_bytes(buf: *u8, n: i64) -> i64
called by 1: main calls 1: sys_mmap
32func main() -> i64