A proof-of-concept demonstrating blockchain integration with cloud object storage for file integrity verification.
- Upload files via REST API
- Store files in MinIO object storage
- Record cryptographic hashes on Hyperledger Fabric blockchain
- Verify file integrity by comparing stored vs current hash
- Blockchain: Hyperledger Fabric
- Storage: MinIO
- Backend: Node.js + Express
- Smart Contract: JavaScript (Fabric Contract API)
├── chaincode/ # Fabric smart contracts
├── backend/ # REST API server
├── tests/ # Test scripts
└── docs/ # Documentation (private)
-
Prerequisites: Docker, Node.js 18+, Fabric binaries
-
Setup Hyperledger Fabric
# Download fabric-samples and start test network
# See fabric/README-FABRIC.md for details- Start MinIO
docker-compose up -d- Install & Run Backend
cd backend
npm install
npm start| Endpoint | Method | Description |
|---|---|---|
/health |
GET | Health check |
/upload |
POST | Upload file |
/verify/:id |
GET | Verify integrity |
/files |
GET | List files |
# Upload test file
curl -F "file=@test.txt" http://localhost:3000/upload
# Verify integrity
curl http://localhost:3000/verify/{fileID}- SHA-256 hashing
- Immutable blockchain records
- Tamper detection
MIT License - see LICENSE
Note: This is an exploratory project demonstrating blockchain concepts. Not production-ready.