TruthVault
TruthVault is a zero-knowledge document provenance platform built on Midnight.
Many documents contain sensitive metadata such as capture dates or other information that should remain private. Existing verification methods often require revealing that metadata to prove authenticity.
TruthVault solves this problem by allowing users to prove facts about a document without exposing the document itself or its private metadata.
How it works
- The user uploads a document.
- The document is hashed locally in the browser.
- A cryptographic commitment is registered on the Midnight blockchain.
- The user generates a zero-knowledge proof for a specific claim.
- Midnight verifies the proof without revealing the underlying secret.
Challenges
The biggest challenge was integrating Midnight's zero-knowledge workflow with a simple and intuitive user experience while keeping all sensitive information private.
What we learned
This project gave us hands-on experience with Midnight's privacy-preserving architecture, zero-knowledge proofs, wallet integration, and secure document verification.
Future Work
We plan to support more document types, richer private claims, organizational verification workflows, and enterprise integrations.
Built With
- aes-gcm
- compact
- docker
- fastify
- lace-wallet
- midnight
- midnight-js-sdk
- react
- sha-256
- typescript
- vite
- web-crypto
- zero-knowledge