code wiki / _hdl_build / nx_doc_seal_gate.nx
nx_doc_seal_gate.nx
buildroot/runtime/_hdl_build/nx_doc_seal_gate.nx
about
nx_doc_seal_gate.nx -- GATE for LEGAL D5 (nx_doc_seal).
Drives the REAL seal over the RFC 8032 Ed25519 test-vector keypair
(deterministic) and asserts:
SEAL+VERIFY : a VALID contract (UETA elements) seals (SEAL_OK), and the
produced Ed25519 signature VERIFIES over the canonical
record.
TAMPER : flipping one byte of the canonical record -> verify
TAMPERED; flipping it back -> VERIFIED again (the signature
commits to the exact document+signer+legal-context).
*** NEVER SEAL A VOID INSTRUMENT (the D5 safety crux) ***
a WILL with ALL general UETA elements but no witnesses, in
an e-wills jurisdiction -> REFUSED (NEEDS_MORE), NO signature;
a WILL in a NO-e-wills jurisdiction -> REFUSED_VOID, NO
signature. A generic e-sign clone would sign either; this
layer physically cannot.
E-WILL OK : a properly-executed e-will (testator + 2 witnesses + notary)
seals (SEAL_OK / ELECTRONIC_WILLS) and verifies.
Evidence -> knowledge/status/doc_seal.log
license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_doc_seal.nxnx_legal_compliance.nxnx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 27 | const DS_LOG: *u8 = "knowledge/status/doc_seal.log" |
functions
| 29 | func ew(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 } |
| 30 | func ewn(fd: i64, v: i64) -> i64 |
| 39 | func slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: main |
| 41 | func main() -> i64 |