code wiki / _hdl_build / nx_social_auth_recover_gate.nx

nx_social_auth_recover_gate.nx

buildroot/runtime/_hdl_build/nx_social_auth_recover_gate.nx

4906 B94 linesdepth 16pulls 46 transitivereach 0 importersview sourcekind gate/prooftopic social
docsdependenciesstructsconstsfunctions

about

nx_social_auth_recover_gate.nx -- REFEREE for the elderly social-recovery-to-account wiring: a family quorum RESETS the account, the user holds no seed phrase, and less-than-quorum cannot. End-to-end through the REAL Modern Auth: arm a realm -> register (issues a mnemonic) -> enroll-split its entropy across 3 contacts (K=2) -> exercise recovery: T1 single contact (K-1) -> recovery REFUSED (garbage entropy -> wrong mnemonic -> mismatch) T2 two contacts (quorum) -> account RECOVERED (new passphrase set, mnemonic rotated) T3 login with the family-set passphrase -> OK T4 login with the OLD passphrase -> dead (rotated) GREEN iff T1..T4. Sovereign: nx_social_auth_recover (+ nx_social_recovery + nx_bip39 + nx_modern_auth_flow). license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_social_auth_recover.nx nx_modern_auth_flow.nx nx_syscalls.nx nx_social_auth_recover_gate.nx

imports: nx_social_auth_recover.nxnx_modern_auth_flow.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main g_w sys_write g_trunc sys_openat_wr sys_close sys_mmap nx_uas_server_keys_load_or sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ↻ _uas_hex_dec _uas_nib nx_csprng_fill sys_mmap ↻ nx_csprng_urandom_path sys_openat_rd ↻ sys_read ↻ sys_close ↻ nx_opq_derive_keypair sys_mmap ↻ _voprf_load_context_string u256_alloc nx_scratch nx_scratch_init sys_mmap ↻ nx_scratch_oom sys_write ↻ sys_exit sys_mmap ↻ nx_opq_hash_to_scalar sys_mmap ↻ nx_h2c_expand_message_xmd_ sys_mmap ↻ _h2c_i2osp_1 _h2c_i2osp_2

structs

none

consts

none

functions

15func g_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: g_rowmain calls 1: sys_write
16func g_row(name: *u8, ok: i64) -> i64
called by 1: main calls 1: g_w
22func g_trunc(path: *u8) -> i64 { let fd: i64 = sys_openat_wr(path, 0x180); if fd >= 0 { sys_close(fd) } return 0 }
called by 1: main calls 2: sys_openat_wrsys_close
24func main() -> i64