code wiki / _hdl_build / nx_connect_live_verify.nx

nx_connect_live_verify.nx

buildroot/runtime/_hdl_build/nx_connect_live_verify.nx

15722 B270 linesdepth 19pulls 126 transitivereach 0 importersview sourcekind orphan librarytopic connect
docsdependenciesstructsconstsfunctions

about

nx_connect_live_verify.nx -- SOVEREIGN live verification of the PUBLIC CONNECT app, every rung OURS on OUR hardware: DNS -> TCP -> our TLS 1.3 handshake (X.509 chain-validated vs the Mozilla trust store) -> HTTP GET/POST -> our HTTP parser -> our dechunk -> byte assertions. This REPLACES WebFetch (operator 2026-07-10: "i dont want webfetch in the mix i want native nishi os and nishi browser our hardware from each rung up"). Same bits-up stack as nx_browser_own_site_live_test, extended to POST so the INTERACTIVE path is proven sovereignly too. GET https://nishifamily.com/connect -> 200 + app markers (title, Vera, ru+en MT, receipts) POST https://nishifamily.com/connect/say -> the reply renders "thanks friend" (real MT over TLS) Exit 0 = the live public app served + rendered through our own browser stack. license_tier: ORIGINAL

dependencies 10 imports · 0 importers

nx_syscalls.nx nx_x509_trust_store.nx nx_trust_store_load_from_certdata. nx_tls13_client_validate_certifica nx_tls13_client_session_run.nx nx_https_url_for_fetch.nx nx_https_url_connect.nx nx_https_get_complete.nx nx_https_post_complete.nx nx_http_response_parse.nx nx_connect_live_verify.nx

imports: nx_syscalls.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_tls13_client_validate_certificate.nxnx_tls13_client_session_run.nxnx_https_url_for_fetch.nxnx_https_url_connect.nxnx_https_get_complete.nxnx_https_post_complete.nxnx_http_response_parse.nx

imported by: nobody (leaf or entry point)

structs

none

consts

20const K_MAGIC_262144: i64 = 262144
21const K_MAGIC_16384: i64 = 16384
22const K_MAGIC_4194304: i64 = 4194304

functions

24func lv_w(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 2: lv_checklv_fetch calls 1: sys_write
25func lv_n(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: lv_fetch calls 2: sys_mmapsys_write
26func lv_check(pass: i64, label: *u8, fails: *i64) -> i64
called by 1: lv_fetch calls 1: lv_w
31func lv_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 2: lv_haslv_fetch
32func lv_cat(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){dst[off+i]=s[i]; i=i+1} return off+i }
33func lv_catb(dst: *u8, off: i64, src: *u8, n: i64) -> i64 { var i: i64=0; while i<n { dst[off+i]=src[i]; i=i+1 } return off+n }
34func lv_catnum(dst: *u8, off: i64, v: i64) -> i64
calls 1: sys_mmap
45func lv_has(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: lv_fetch calls 1: lv_slen
61func lv_fetch(store: *TrustStore, is_post: i64, path: *u8, plen: i64, body: *u8, blen: i64,
122func main() -> i64