code wiki / _hdl_build / nx_modauth_e2e_gate.nx
nx_modauth_e2e_gate.nx
buildroot/runtime/_hdl_build/nx_modauth_e2e_gate.nx
about
nx_modauth_e2e_gate.nx -- ENGINEER gate: the WHOLE modern-auth login stack end to end.
Composes the real production path the wiki daemon will call: server key bundle
(load-or-init, idempotent) -> nx_modern_auth_register (OPAQUE registration +
argon2id KSF + additive-only store) -> nx_modern_auth_login (OPAQUE-3DH KE1/KE2/KE3
+ ServerFinish + Ed25519 session mint) -> nx_modern_auth_validate_session.
14 rows:
1 keygen idempotent (second load == first) 6 tampered token rejected
2 register OK + 24-word BIP39 mnemonic issued 7 expired token rejected
3 login correct pw -> 152B token 8 re-register supersedes (old pw dies)
4 token validates + user_id_hash matches 9 new pw lives after supersede
5 wrong pw -> WRONG_PASSPHRASE 10 unknown user -> USER_NOT_FOUND
11 recover w/ mnemonic -> OK + NEW rotated mnemonic
12 login with recovered passphrase -> OK (and pre-recover pw dead)
13 recover with the OLD mnemonic after rotation -> RECOVERY_MISMATCH
14 recover with a typo'd mnemonic (checksum) -> RECOVERY_MISMATCH
KSF here: argon2id m=8 MiB t=1 (real memory-hard path, gate-speed params).
Production realm ctx uses vault-lineage 32 MiB / t=3. Recovery credential = KSF
Identity by design (256-bit CSPRNG entropy; no dictionary to defend against).
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_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
| 26 | func eg_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 27 | func eg_row(idx: i64, ok: i64, name: *u8) -> i64 |
| 40 | func eg_eq(a: *u8, b: *u8, n: i64) -> i64 called by 1: main |
| 45 | func eg_trunc(path: *u8) -> i64 |
| 51 | func main() -> i64 |