feat/1019-signed-evidence-bundles-transparency-log - #1233
Merged
Mosas2000 merged 1 commit intoAug 29, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements signed, portable evidence bundles and an append-only transparency
log so a verifier can prove exactly which raw observations, code/config
versions, decoder versions, query parameters and chain-finality metadata
produced a report or export — without trusting the application database.
Closes #1019
What's included
Pure verification core —
backend/src/services/transparencyLog/No DB or network imports, so the exact same code backs the offline verifier.
canonical.ts— deterministic JSON (RFC 8785 subset)merkle.ts— RFC 6962 Merkle tree: root, inclusion proofs, consistencyproofs, and tree-free verification (ported from transparency-dev/merkle)
ed25519.ts— Ed25519 over raw 32-byte hex keysevidenceBundle.ts— canonicalcorebuilder, evidence-root hashing,partial disclosure (
discloseSubset), andverifyEvidenceBundle()whichrecomputes every commitment and checks the signature + transparency proof
Database service —
backend/src/services/evidenceBundle.service.tsappended to the log so key lifecycle is independently auditable
pg_advisory_xact_lock, publishing asigned tree head for every tree size (signed by a separate
logkey sotree-head trust and authorship trust are distinct)
sections (with salts) + inclusion proof + signed tree head + signer
key-registration proof
Schema —
20260829100000_signed_evidence_bundles.tsevidence_bundle_signing_keys,transparency_log_entries,transparency_log_checkpoints,evidence_bundles.REST API —
/api/v1/evidence/*/bundles/bundles//bundles/:id/bundles/:id/disclose?sections=&outputs=)/bundles/:id/verify/bundles/verify/log//log/checkpoint/log/proof/inclusion//log/proof/consistency/log/keys, POST/log/keys/rotate, POST/log/keys/:keyId/revokeStandalone offline verifier —
backend/scripts/verify-evidence-bundle.mjsNode stdlib only. Prints a PASS/FAIL line per check; exit 0 = valid, 1 = invalid.