code wiki / _hdl_build / nx_email_invite.nx

nx_email_invite.nx

buildroot/runtime/_hdl_build/nx_email_invite.nx

2950 B61 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind tooltopic email
docsdependenciesstructsconstsfunctions

about

nx_email_invite.nx -- CLI: mint ONE mailbox invite for a domain's email portal (the provisioning seam of nx_email_portal_daemon: registration is invite-gated, so "create a new email address" = mint an invite + hand it to the person; they self-register with their OWN passphrase -- the operator never knows or sets user secrets, OPAQUE end-to-end). Designed to run as a capability-gated MCP tool with a FULLY PINNED allowlist row per domain (store+realm+level+ttl pinned server-side -> the caller's cap can only ever mint for ITS domain; that IS the per-site-admin delegation, enforced by construction). nx_email_invite <invites_store_path> <realm> <level> <ttl_s> prints: INVITE token=<64-hex> realm=<realm> level=<n> ttl_s=<n> Composes the proven nx_invite_token store (inv_issue; sha256-keyed, append-only, fail-closed). license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_invite_token.nx nx_syscalls.nx nx_email_invite.nx

imports: nx_invite_token.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 ei_puts sys_write sys_exit ei_atoi sys_mmap inv_issue sys_mmap ↻ nx_csprng_fill sys_mmap ↻ nx_csprng_urandom_path sys_openat_rd sys_read sys_close _inv_hex_enc sha256_digest sys_mmap ↻ sha256_init sys_mmap ↻ sha256_k sha256_update sha256_compress_ni_blocks blk_set_byte sha256_compress sha256_compress_ni blk_word blk_byte sha256_final blk_set_byte ↻ sha256_compress ↻ _inv_cat _inv_catn _inv_i64_dec sys_mmap ↻ _inv_i64_hex16 sys_openat_append sys_write ↻ sys_fsync sys_close ↻ ei_slen

structs

none

consts

none

functions

15func ei_puts(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
16func ei_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: main
17func ei_putn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
27func ei_atoi(s: *u8) -> i64
called by 1: main
37func main(argc: i64, argv: *i64) -> i64