A comprehensive, enterprise-ready solution for managing digital evidence with blockchain-based integrity verification, wallet-authenticated ownership transfers, and tamper detection. Built on Algorand with real-time verification, role-based access control (RBAC), and decentralized storage options.
ChainProof+ is a complete forensic evidence management system that leverages blockchain technology to ensure:
- Immutable records of evidence ownership and custody chain
- Cryptographic verification of file integrity (SHA-256 + BLAKE2b hashing)
- Tokenized ownership via Algorand Standard Assets (ASA)
- Wallet-based authentication with Pera Wallet for transaction signing
- Role-based access control (Admin, Investigator, Auditor)
- Smart contract enforcement of access policies and multi-signature approvals
- AI-enhanced verification for tampering detection and deepfake risk assessment
- Decentralized architecture with optional IPFS integration for file storage
- Dual-hash verification: SHA-256 and BLAKE2b hashing for evidence integrity
- Transaction-based proof: Every transfer recorded on Algorand blockchain
- Tamper detection: AI heuristics to identify potential file manipulation
- Access control: RBAC system restricting evidence operations to authorized roles
- ASA tokenization: Each evidence file represented as a unique Algorand token
- Real-time transfers: Pera Wallet-approved asset transfers with blockchain recording
- Ownership timeline: Visual history of all custody changes with timestamps
- Multi-signature approval: Optional 2-3 signature requirements for critical evidence
- Transaction notes: Evidence metadata embedded in blockchain for full traceability
- Trust scoring: Automated verification scoring (0-100%) based on integrity + metadata + chain validation
- Verification logs: Complete audit trail of all verification operations
- QR certificates: Downloadable forensic certificates with blockchain verification links
- Chain of custody tracking: Immutable record of evidence movement between stakeholders
- Drag-and-drop upload: Seamless evidence file ingestion
- Visual timeline: Graph-based ownership and custody history
- Real-time dashboard: Live transaction status and blockchain updates
- Downloadable reports: PDF forensic certificates with QR codes linking to on-chain proof
- Responsive design: Works on desktop and tablet for field operations
- IPFS support (optional): Decentralized file storage while maintaining on-chain hash references
- Public read access: Evidence list and details publicly queryable; write operations require authentication
- JWT token-based auth: Session management with role-based permissions
- Rate limiting: API protection against abuse (100 requests/15 minutes)
- Node.js + Express.js β REST API server
- TypeScript β Type-safe backend development
- SQLite β Local database for evidence metadata
- Algorand SDK β Blockchain integration for ASA creation and transactions
- jsonwebtoken (JWT) β Authentication and authorization
- Multer β File upload handling
- pdf-lib β PDF certificate generation
- qrcode β QR code generation for blockchain proof links
- cors, helmet, morgan, express-rate-limit β Security & monitoring
- React 18 + TypeScript β UI framework
- Vite β Lightning-fast dev server and build
- Tailwind CSS β Utility-first styling
- use-wallet-react β Pera Wallet integration
- React Router β Client-side navigation
- @tanstack/react-query β Server state management
- notistack β Toast notifications
- @heroicons/react β Icon library
- AlgoKit Utils β Algorand client utilities
- Python/PyTeal (AlgoPy) β Algorand smart contract language
- AlgoKit β Development framework and deployment
- Algorand TestNet β Blockchain network (configurable for MainNet)
- Docker (optional) β Containerization support
ledgerseal/
βββ projects/
β βββ chainproof-backend/ # Express API server
β β βββ src/
β β β βββ blockchain/ # Algorand integration
β β β βββ services/ # Business logic
β β β βββ controllers/ # API endpoints
β β β βββ routes/ # Route definitions
β β β βββ middleware/ # Auth & RBAC
β β β βββ verification/ # Verification engine
β β β βββ utils/ # Hashing & utilities
β β β βββ config/ # Database setup
β β βββ package.json
β β
β βββ ledgerseal-frontend/ # React web app
β β βββ src/
β β β βββ pages/ # Page components
β β β βββ components/ # Reusable components
β β β βββ services/ # API client
β β β βββ utils/ # Helpers
β β βββ package.json
β β
β βββ ledgerseal-contracts/ # Smart contracts
β βββ smart_contracts/
β β βββ ledger_seal/
β β βββ contract.py # RBAC contract
β β βββ deploy_config.py
β βββ pyproject.toml
β
βββ README.md
- Node.js v20+ and npm v9+
- Python 3.10+ (for smart contracts)
- AlgoKit CLI (install guide)
- Pera Wallet extension (for transaction signing)
git clone <repository-url>
cd ledgerseal
# Install backend dependencies
cd projects/chainproof-backend
npm install
# Install frontend dependencies
cd ../ledgerseal-frontend
npm install
# Install contract dependencies (optional)
cd ../ledgerseal-contracts
pip install -r requirements.txt # or poetry installCreate .env file in projects/chainproof-backend/ with the following variables:
ALGOD_SERVER,ALGOD_PORT,ALGOD_TOKENβ Algorand node connection (use PureStake or LocalNet)INDEXER_SERVER,INDEXER_PORT,INDEXER_TOKENβ Algorand indexer endpointDEPLOYER_MNEMONICβ 25-word seed phrase for smart contract deploymentJWT_SECRETβ Secret key for JWT token signing (use a strong random string)USE_IPFS(optional) β Set totrueto enable IPFS file storageIPFS_API_URL(optional) β IPFS node endpoint (default: Infura gateway)VITE_API_BASE_URLβ Frontend API base URL (default:http://localhost:3001/api)
See .env.example for reference structure.
Backend (from projects/chainproof-backend/):
npm run dev
# Runs on http://localhost:3001Frontend (from projects/ledgerseal-frontend/):
npm run dev
# Runs on http://localhost:5173- Open
http://localhost:5173in your browser - Click wallet icon β Connect with Pera Wallet
- Go to Settings β Select role β Login with Wallet Role
- Navigate to Upload β Upload evidence file
- View on Dashboard β Click evidence card β See Ownership Timeline
- Try Transfer Ownership β Approve in Pera Wallet β Verify on-chain
- User uploads file via drag-and-drop
- Backend computes SHA-256 + BLAKE2b hashes
- Algorand creates ASA token (1 unit, non-divisible)
- Transaction recorded with evidence metadata in note field
- Evidence stored in database with asset ID reference
- User selects evidence and new owner address
- Frontend constructs ASA transfer transaction
- Pera Wallet prompts for approval and signature
- Backend verifies transaction on-chain
- Custody record created with transaction ID
- Evidence ownership updated in database
- User provides evidence ID and optional file
- Backend recomputes hashes if file provided
- AI heuristics analyze for deepfake/tampering risk
- Trust score calculated (0-100%)
- Verification result stored with risk level
- User can download forensic certificate with QR code
POST /api/auth/loginβ Login with wallet address & role β receive JWT token
GET /api/evidenceβ List all evidenceGET /api/evidence/:idβ Get evidence detailsGET /api/evidence/:id/historyβ Get ownership timelineGET /api/evidence/:id/certificateβ Download forensic PDF
POST /api/evidence/registerβ Upload & register new evidence (Investigator+)POST /api/evidence/verifyβ Verify evidence integrity (Investigator+)POST /api/evidence/:id/transferβ Initiate ownership transfer (Investigator+)POST /api/evidence/:id/transfer/approveβ Approve multi-sig transfer (Admin/Investigator)
| Role | Upload | Verify | Transfer | Approve |
|---|---|---|---|---|
| Admin | β | β | β | β |
| Investigator | β | β | β | β |
| Auditor | β | β | β | β |
- Mobile Application β Native iOS/Android app using React Native for field evidence collection with offline support
- Advanced AI Integration β Integrate leading AI models for facial recognition, forgery detection, and metadata analysis
- Distributed Evidence Network β Multi-node blockchain deployment for enhanced redundancy and geographic resilience
- Regulatory Compliance Modules β Support for GDPR, HIPAA, and jurisdiction-specific evidence handling standards
- Automated Chain-of-Custody Reporting β Generate compliant forensic reports with automated notifications
- Evidence Encryption at Rest β AES-256 encryption for stored evidence with key management services
- Integration with Law Enforcement Systems β Direct API integration with major law enforcement databases and case management systems
- Advanced Analytics Dashboard β Trends, anomaly detection, and predictive analysis for evidence patterns
- Blockchain Explorer UI β Custom explorer for easy transaction verification and audit trails
- Multi-Chain Support β Extend blockchain support to Ethereum, Polygon, and other networks for institutional choice
For detailed information, refer to:
This is a production-ready forensic evidence management system. For issues, feature requests, or contributions, please follow the standard Git workflow.
Proprietary β ChainProof+ Evidence Management System
- Deploy smart contracts to Algorand TestNet/MainNet
- Set up production Algorand API endpoints
- Configure IPFS for decentralized file storage
- Integrate advanced AI tampering detection APIs
- Deploy frontend to web hosting
- Conduct security audit for production use