How pratikshakalbhor/dataproof works
DataProof/ChainLock is a browser-based forensic file vault. Users connect a wallet, upload files for hashing, encryption, storage and blockchain sealing, then verify files, inspect tampering evidence and restore originals. The graph preserves dashboard, archive/recovery, notifications, audit history and certificate capabilities documented in the README. Backend internals are grouped by domain because their call-level relationships were not excerpted; those links use documented system-level evidence.
Main entry points: api.js API client · App.jsx App routing · routes.go REST routes · Verify.jsx File verification
Components 28
Web client
- App routing
frontend/src/App.jsx - Dashboard
frontend/src/pages/Dashboard.jsx - My files and archive
frontend/src/pages/MyFiles.jsx - Blockchain log
frontend/src/pages/BlockchainLog.jsx - Profile and insights
frontend/src/pages/Profile.jsx - Public verification
frontend/src/pages/PublicVerify.jsx - Certificate download
frontend/src/utils/generateCertificate.js - Notification dropdown
frontend/src/components/NotificationDropdown.jsx
Vault operations
- File upload
frontend/src/pages/Upload.jsx - Blockchain client
frontend/src/utils/blockchain.js
Forensics and recovery
- File verification
frontend/src/pages/Verify.jsx - Forensic report
frontend/src/components/ForensicModal.jsx - Recovery hub
frontend/src/pages/RecoveryHub.jsx
API and persistence
- API client
frontend/src/utils/api.js - REST routes
go-backend/routes/routes.go - Upload handler
go-backend/handlers/upload.go - Verify handler
go-backend/handlers/verify.go - Forensic comparison
go-backend/handlers/forensic_compare.go - File management
go-backend/handlers/files.go - Audit history
go-backend/handlers/audit.go - Security notifications
go-backend/handlers/notifications.go - Proof certificate
go-backend/handlers/certificate.go
Other components
- User
- MetaMask wallet
- Ethereum Sepolia
- MongoDB
- Pinata IPFS
- Local backups
Connections 40
- User → App routing: uses
frontend/src/App.jsx - App routing → File upload: routes to
frontend/src/App.jsx - App routing → File verification: routes to
frontend/src/App.jsx - App routing → Dashboard: routes to
frontend/src/App.jsx - App routing → My files and archive: routes to
frontend/src/App.jsx - App routing → Blockchain log: routes to
frontend/src/App.jsx - App routing → Profile and insights: routes to
frontend/src/App.jsx - App routing → Public verification: routes to
frontend/src/App.jsx - File upload → API client: submits file
- File upload → Blockchain client: seals hash
frontend/src/pages/Upload.jsx - Blockchain client → MetaMask wallet: requests signing
frontend/src/utils/blockchain.js - Blockchain client → Ethereum Sepolia: reads and writes
frontend/src/utils/blockchain.js - File verification → API client: requests verification
- File verification → Blockchain client: checks chain
frontend/src/pages/Verify.jsx - File verification → Forensic report: opens report
frontend/src/pages/Verify.jsx - Recovery hub → Forensic report: renders report
frontend/src/pages/RecoveryHub.jsx - Recovery hub → API client: requests recovery
frontend/src/pages/RecoveryHub.jsx - API client → REST routes: calls REST API
README.md - REST routes → Upload handler: routes upload
- REST routes → Verify handler: routes verification
- REST routes → Forensic comparison: routes comparison
- REST routes → File management: routes file actions
- REST routes → Audit history: routes audit
- REST routes → Security notifications: routes alerts
- REST routes → Proof certificate: routes certificates
- Upload handler → MongoDB: stores metadata
README.md - Upload handler → Pinata IPFS: uploads encrypted file
README.md - Upload handler → Local backups: keeps original
README.md - Verify handler → MongoDB: reads records
README.md - Forensic comparison → Local backups: compares versions
README.md - File management → MongoDB: manages metadata
README.md - Security notifications → MongoDB: stores notifications
README.md - Dashboard → API client: loads overview
frontend/src/pages/Dashboard.jsx - My files and archive → API client: loads files
frontend/src/pages/MyFiles.jsx - Blockchain log → API client: loads history
frontend/src/pages/BlockchainLog.jsx - Profile and insights → API client: loads insights
frontend/src/pages/Profile.jsx - Public verification → API client: checks public proof
- Notification dropdown → API client: loads alerts
frontend/src/components/NotificationDropdown.jsx - Certificate download → User: downloads PDF
- Forensic comparison → Local backups: restores original