Run as a verifier

You do not have to trust the authors. On a clean machine, clone this repository and run the commands below. Wall time is under ten minutes when Node.js 22+ and npm 10+ are already installed.

Cedulon never talks to a network rail. All keys are fixtures.

1. Clone and install

git clone <path-to-this-repo> cedulon
cd cedulon
npm install

cbor-x is a test-only decoder. If the installer mentions cbor-extract, leave its install script blocked. The suite uses the JavaScript path.

2. Typecheck and tests

npx tsc --noEmit
npm run test:all

Expect: tsc silent, every test passing. The run prints its own count; this page does not restate it. The suite includes red-then-green cases for COSE tamper, checkpoint equivocation, field-level matching, and each audit finding.

3. Completeness demo

Balanced books (must exit 0):

npm run audit

summary audit: balanced

result balanced findings=0

guarantee conditional

counts receipts submitted=2 attested=2 in-scope=2 aborted=0 settled=2 matched=2 deferred=0 carried=0 unmatched=0 repeated=0 unreconciled=0

counts settlements rows=2 matched=2 deferred=0 unmatched=0 repeated=0 unreconciled=0

warning unauthenticated-extract no rail extract was supplied; the rows arrived unsigned, so the completeness guarantee is conditional

warning unauthenticated-issuer no verifier-supplied issuer key; receipt and checkpoint signatures prove internal consistency, not that the named issuer produced them. Without one there is no way to tell a receipt from this issuer apart from any other, so every receipt submitted is weighed as one set and the completeness guarantee is conditional

Four bypass kinds. Missing receipt, same-ref wrong amount, settled null-ref, and garbage chainHeadHash must all fail:

npm run demo:bypass
npm run demo:bypasses

audit: 1 settlement without receipt → FAIL

amount → settlement-mismatch

null-ref → settled-without-ref

head → checkpoint-head-mismatch

4. Older demos (still required)

npm run demo
npm run tamper

demo prints a 3-allow / 97-block runaway with verified receipts. tamper must exit non-zero and print tamper detected.

npm run demo:unguarded is the old hole: 100 allows and no completeness check. Prefer demo:bypass to see that hole closed at audit time.

5. What you just proved

That is completeness: missing evidence is itself evidence.

Source text: docs/RUN_AS_VERIFIER.md.