code wiki / (root) / nx_sign_envelope_lib.nx

nx_sign_envelope_lib.nx

buildroot/runtime/nx_sign_envelope_lib.nx

3160 B96 linesdepth 6pulls 11 transitivereach 8 importersview sourcekind librarytopic sign
docsdependenciesstructsconstsfunctions

about

nx_sign_envelope_lib.nx -- Nishi Sign CORE LIB: tamper-evident e-signature audit chain. h[0]=sha256("nishi-sign-genesis"); h[n]=sha256(h[n-1] || canonical(event_n)) -> altering ANY past event changes the audit head = TAMPER DETECTED BY CONSTRUCTION. Events canonicalized + content-addressed (nx_canon_cid), persisted on the append-only seg_store (nx_registry). LIB (no main) so the CLI organ AND the independent gate import the SAME shipped code. SCALE-LAW (DECLARED): SE_EVT_CAP=4096 B/canonical event, fail-closed never truncates. license_tier: ORIGINAL

dependencies 3 imports · 3 importers

nx_sha256.nx nx_canon_cid.nx nx_registry.nx nx_sign_envelope_lib.nx nx_sign_ceremony_lib.nx nx_sign_envelope.nx nx_sign_envelope_gate.nx

imports: nx_sha256.nxnx_canon_cid.nxnx_registry.nx

imported by: nx_sign_ceremony_lib.nxnx_sign_envelope.nxnx_sign_envelope_gate.nx

structs

none

consts

13const SE_EVT_CAP: i64 = 4096

functions

15func se_catcopy(dst: *u8, off: i64, s: *u8) -> i64
called by 4: mainmainmainmain
21func se_catn(dst: *u8, off: i64, v: i64) -> i64
called by 2: mainse_event_encode
34func se_event_encode(env: *u8, seq: i64, signer: *u8, action: *u8, ts: i64, out: *u8) -> i64
called by 3: sc_signmainmain calls 2: se_catncanon_encode
57func se_chain(prev: *u8, evt: *u8, evtlen: i64, out32: *u8) -> i64
68func se_hex(dg: *u8, out: *u8) -> i64
called by 4: mainmainmainmain
87func se_eq32(a: *u8, b: *u8) -> i64
called by 4: mainmainmainmain
93func se_genesis(out32: *u8) -> i64