code wiki / (root) / nx_matter_lib.nx

nx_matter_lib.nx

buildroot/runtime/nx_matter_lib.nx

6511 B187 linesdepth 6pulls 11 transitivereach 103 importersview sourcekind librarytopic matter
docsdependenciesstructsconstsfunctions

about

nx_matter_lib.nx -- Nishi Office: Matter/Client SPINE (F502) core lib. Client/matter/party records on the append-only immutable seg_store (nx_registry), canonicalized + content-addressed (nx_canon_cid). The legal-SOTA feature = CONFLICTS CHECK (RPC 1.7/1.9): scan every matter's parties for a name across the whole book. LIB (no main) so the CLI organ AND the independent gate import the SAME shipped code. SCALE-LAW (DECLARED): conflict scan is O(N-parties) linear (fail-closed, exact); a party-name index = the flagged next rung, NOT a hidden cap. license_tier: ORIGINAL

dependencies 2 imports · 35 importers

nx_canon_cid.nx nx_registry.nx nx_matter_lib.nx nx_amort_gate.nx nx_beneish_lib.nx nx_bond_gate.nx nx_box_lib.nx nx_captable_lib.nx nx_cite_lib.nx nx_clause_lib.nx nx_clm_lib.nx nx_damages_gate.nx nx_dcf_lib.nx

diagram shows first 10 each side; +0 more imports, +25 more importers in the complete lists below.

imports: nx_canon_cid.nxnx_registry.nx

imported by: nx_amort_gate.nxnx_beneish_lib.nxnx_bond_gate.nxnx_box_lib.nxnx_captable_lib.nxnx_cite_lib.nxnx_clause_lib.nxnx_clm_lib.nxnx_damages_gate.nxnx_dcf_lib.nxnx_docgen_lib.nxnx_docket_lib.nxnx_edgar_lib.nxnx_ediscovery_lib.nxnx_efile_lib.nxnx_entity_lib.nxnx_esign_lib.nxnx_fx_lib.nxnx_hold_lib.nxnx_ipdock_lib.nxnx_iso20022_lib.nxnx_ledes_lib.nxnx_ledger_lib.nxnx_ltv_lib.nxnx_matter.nxnx_matter_gate.nxnx_obligation_lib.nxnx_piotroski_lib.nxnx_privacy_lib.nxnx_privlog_lib.nxnx_redact_gate.nxnx_sol_gate.nxnx_taxlot_gate.nxnx_trust_lib.nxnx_var_lib.nx

structs

none

consts

11const K_MAGIC_2048: i64 = 2048
12const K_MAGIC_1048576: i64 = 1048576

functions

14func mt_r32(p: *u8, off: i64) -> i64
called by 1: mt_field
22func mt_catcopy(dst: *u8, off: i64, s: *u8) -> i64
28func mt_catn(dst: *u8, off: i64, v: i64) -> i64
40func mt_streq(a: *u8, b: *u8) -> i64
52func mt_field(rec: *u8, reclen: i64, key: *u8, keylen: i64, out: *u8) -> i64
83func mt_rec(keys: *i64, vals: *i64, n: i64, out: *u8) -> i64
calls 1: canon_encode
87func mt_client_put(prefix: *u8, id: *u8, name: *u8, email: *u8) -> i64
101func mt_matter_put(prefix: *u8, mid: *u8, client: *u8, title: *u8, area: *u8) -> i64
118func mt_party_add(prefix: *u8, mid: *u8, seq: i64, name: *u8, role: *u8) -> i64
140func mt_conflict(prefix: *u8, name: *u8, matters: *u8) -> i64
182func mt_matter_field(prefix: *u8, mid: *u8, field: *u8, flen: i64, out: *u8) -> i64
called by 2: mainmain calls 2: reg_getmt_field