code wiki / (root) / nx_rights_ledger_store_gate.nx

nx_rights_ledger_store_gate.nx

buildroot/runtime/nx_rights_ledger_store_gate.nx

1936 B38 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic rights
docsdependenciesstructsconstsfunctions

about

nx_rights_ledger_store_gate.nx -- durability gate for the rights ledger. Proves a license SURVIVES restart: grant + revoke in memory -> save to the append-only store -> LOAD into a BRAND-NEW ledger (the simulated restart) -> every is_licensed answer is identical, including the revoke and the expiry. Returns 0 iff durable + correct; a nonzero code pinpoints the first failure.

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_rights_ledger.nx nx_rights_ledger_store.nx nx_rights_ledger_store_gate.nx

imports: nx_syscalls.nxnx_rights_ledger.nxnx_rights_ledger_store.nx

imported by: nobody (leaf or entry point)

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

main nx_rights_ledger_new sys_mmap nx_rights_grant nx_use_is_valid _rl_at nx_rights_revoke _rl_find _rl_at ↻ _rl_at ↻ nx_rights_save ss_begin ss_begin_cap sys_mmap ↻ ss_add ss_add2 ss_w32 ss_len ss_commit ss_segid_ok sys_mmap ↻ ss_cat ss_catn sys_mmap ↻ sys_write ss_write_seg ss_segid_ok ↻ sys_mmap ↻ ss_cat ↻ ss_catn ↻ sys_write ↻ ss_segname ss_cat ↻ ss_catn ↻ ss_writefile sys_openat_wr sys_write ↻ sys_close sys_fsync sys_renameat

structs

none

consts

none

functions

12func main() -> i64