Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions demo/audit-demo.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ L('\n The edit is silent in the file but LOUD in the chain: you cannot rewrite
L(' without breaking the seal.');

// The other tamper a plain chain can't see: DELETING the newest verdicts. A valid
// PREFIX still verifies — so redstamp 0.5.1 pins the head. The gate keeps the chain
// PREFIX still verifies — so redstamp (since 0.5.1) pins the head. The gate keeps the chain
// head + length in memory as it records (a checkpoint an on-disk attacker can't
// reach); verifying against it catches a truncation the bare chain waves through.
const fresh = runTrilogy();
Expand All @@ -74,7 +74,7 @@ const vsCheckpoint = verifyAuditFile(fresh.trailPath, checkpoint);
L('\nA sneakier tamper — the attacker DELETES the last two verdicts instead of editing one:');
L(' verifyAuditFile() alone → ' + JSON.stringify(barePrefix) + ' ⚠️ a truncated prefix still checks out');
L(' …against the gate\'s checkpoint → ' + JSON.stringify(vsCheckpoint) + ' ❌ TRUNCATION caught');
L('\n redstamp 0.5.1 anchors the chain head, so truncating the newest entries is caught too —');
L('\n redstamp (since 0.5.1) anchors the chain head, so truncating the newest entries is caught too —');
L(' the same protection strongroom gives its secret-access log with an HMAC tip.');
L(' strongroomAudit.verify(): ' + JSON.stringify(strongroomAudit.verify()));

Expand Down
21 changes: 9 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
},
"dependencies": {
"@askalf/redstamp": "git+https://github.com/askalf/redstamp.git#5222bc1b0c1e5dd3daf77078fd964f9c2215fe29",
"@askalf/truecopy": "git+https://github.com/askalf/truecopy.git#951460e003ab16ef86ea5f297c6523c09b4fba4e",
"@askalf/strongroom": "git+https://github.com/askalf/strongroom.git#43c9ca600ced5f9acc755590bc324e95764a5195",
"@askalf/truecopy": "git+https://github.com/askalf/truecopy.git#32638be89127f8aa9922b8add02843dac7bc7cce",
"@askalf/strongroom": "git+https://github.com/askalf/strongroom.git#94b653bf8e3157226fd9c16330711b5b10ce7414",
"@modelcontextprotocol/sdk": "^1.30.0",
"zod": "^4.4.3"
},
Expand Down