Security and receipts
Prove it, without asking us
Every receipt is a link in a SHA-256 hash chain, signed with Ed25519. Anyone with the public key can check it, offline.
Verify a chain in your browser
The conformance vectors from the repository: real chains, valid and tampered. Pick one, edit it if you like, and verify. Nothing is sent anywhere.
What a verifier checks
- Fetch the keys from
GET /receipts/v1/keysand find the one whosekeyIdthe receipt names. No such key: do not trust it. - Check the
keyIdis the first 16 hex of SHA-256 over the public key. - Recompute
hash: SHA-256 of the canonical JSON (keys sorted at every depth) of{lineId, seq, at, who, what, text, data, prev}. - Check
sig: Ed25519 over the 64-character hex hash. - Check
previs the previous receipt's hash (64 zeros for the first) andseqcounts up from 1.
The first failure wins, with one code: seq, subject, prev, hash, key or sig.
The published keys
- No authentication, read-only, and nothing private can come out: each entry is built from five fields, and only a real Ed25519 public key whose id matches is listed.
- Cacheable: a strong
ETagandmax-age=300; sendIf-None-Matchand expect304. - Rate limited: 60 a minute per address, 600 in all, then
429withRetry-After. - Retired keys stay listed, so older receipts still verify after a key change.
{"algorithm":"Ed25519","current":"3f6a9d02c1b7e5a4",
"format":"pillion-receipt-keys/1",
"keys":[{"keyId":"3f6a9d02c1b7e5a4","notAfter":null,
"notBefore":"2026-09-01T00:00:00.000Z",
"publicKey":"MCowBQYDK2VwAyEA...","status":"current"}]}
Verify an audit export offline
node packages/server-node/dist/verify-audit.mjs audit.json --trust <keyId>=<base64 SPKI>
# exit 0: verified; exit 1: not
Tokens and revocation
- A token is shown once. The server keeps its SHA-256; listings show its id (the first 12 hex of that digest), never the token.
- Revoking is idempotent and audited: who, when, which id.
- A request already in flight is refused at its commit: each write carries a fence that aborts it once the token is revoked, so nothing partial is stored or sealed.
- Deleting a recipient removes their data from stored trigger requests once no other recipient needs it.
What the operator keeps
The seal key, the admin token's digest and every provider credential are kept in the operator's vault, and are never printed or committed. A seed pasted where a public key belongs is refused at start-up.