code wiki / _hdl_build / nx_invite_issue_cli.nx

nx_invite_issue_cli.nx

buildroot/runtime/_hdl_build/nx_invite_issue_cli.nx

1777 B27 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_invite_issue_cli.nx -- issue ONE single-use, expiring invite token into a doc-portal invite store and print the 64-hex SECRET to hand the invitee. The store path = "<daemon-storefile>.invites" (the daemon's dad_invite_path derives this). Run it against a local file then ship that file to the NAS invite path (first invite), OR run it on the NAS. Composes inv_issue (nx_invite_token.nx). nx_invite_issue_cli <invite_store_path> <realm> <level> <ttl_seconds> license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_invite_token.nx nx_invite_issue_cli.nx

imports: nx_invite_token.nx

imported by: nobody (leaf or entry point)

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

main iic_pe iic_atoi sys_now_realtime_sec sys_mmap sys_clock_gettime_real 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 ↻ iic_strlen

structs

none

consts

none

functions

9func iic_pe(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(2,s,n); return 0 }
called by 1: main
10func iic_pp(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
11func iic_strlen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: main
12func iic_atoi(s: *u8) -> i64 { var v: i64=0; var i: i64=0; while s[i]!=(0 as u8){ let c: i64=s[i] as i64; if c>=48 { if c<=57 { v=v*10+(c-48) } } i=i+1 } return v }
called by 1: main
14func main(argc: i64, argv: *i64) -> i64