Skip to content
Discussion options

You must be logged in to vote

Turn on the tamper evident audit chain, then sign checkpoints and issue receipts. Each agent's audit rows are hash chained, and verifyAuditChain finds edited, deleted or reordered rows. For someone outside your database, createCheckpoint builds a Merkle tree over the chained rows and signs the tree head with Ed25519. createReceipt bundles one decision with an inclusion proof, revealing the fields you pick and hiding the rest. The counterparty verifies offline with just your public key.

const keys = await generateCheckpointKeyPair("audit-2026-10");
const store = createMemoryCheckpointStore();
const result = await createCheckpoint(db, { signer: keys.signer, store });
if (!result.success) throw

Replies: 1 comment

Comment options

thegdsks
Oct 17, 2026
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by thegdsks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant