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
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
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
structs
| none |
consts
| none |
functions
| 15 | func 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 } |
| 16 | func g_row(name: *u8, ok: i64) -> i64 |
| 22 | func g_trunc(path: *u8) -> i64 { let fd: i64 = sys_openat_wr(path, 0x180); if fd >= 0 { sys_close(fd) } return 0 } |
| 24 | func main() -> i64 |