nx_sign_envelope_lib.nx
buildroot/runtime/nx_sign_envelope_lib.nx
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
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
| 13 | const SE_EVT_CAP: i64 = 4096 |
functions
| 15 | func se_catcopy(dst: *u8, off: i64, s: *u8) -> i64 |
| 21 | func se_catn(dst: *u8, off: i64, v: i64) -> i64 |
| 34 | func se_event_encode(env: *u8, seq: i64, signer: *u8, action: *u8, ts: i64, out: *u8) -> i64 |
| 57 | func se_chain(prev: *u8, evt: *u8, evtlen: i64, out32: *u8) -> i64 |
| 68 | func se_hex(dg: *u8, out: *u8) -> i64 |
| 87 | func se_eq32(a: *u8, b: *u8) -> i64 |
| 93 | func se_genesis(out32: *u8) -> i64 |