How subasri-oop/certificate-verification-system works
This is a certificate-authenticity service: users upload an image or PDF, the backend computes its SHA-256 fingerprint and screens it for tampering, then checks clean documents against a blockchain registry and returns a status. Trusted authorities can register certificate hashes through a separate store workflow. The graph reflects calls visible in the excerpts and capabilities documented in the README; some detector subchecks are combined because they share one implementation file, and the visual-PDF check’s invocation is not shown.
Main entry points: tamper_detector.py Tamper detector · contract_manager.py Contract manager · app.js Upload API client · main.py Verify endpoint
Components 16
User interface
- Upload and results UI
frontend/index.html - Upload API client
frontend/app.js
Verification service
- Verify endpoint
backend/main.py - Register endpoint
backend/main.py
Document analysis
- SHA-256 hashing
backend/tamper_detector.py - Binary signatures
backend/tamper_detector.py - PDF inspection
backend/tamper_detector.py - Image structure check
backend/tamper_detector.py - Metadata inspection
backend/tamper_detector.py - Error level analysis
backend/tamper_detector.py - Tamper detector
backend/tamper_detector.py
Blockchain registry
- Contract manager
blockchain/contract_manager.py - Certificate contract
blockchain/CertificateStore.sol - Blockchain registry
Other components
- Uploader / authority
- Ganache node
Connections 21
- Uploader / authority → Upload and results UI: uploads document
README.md - Upload and results UI → Upload API client: provides interface
README.md - Upload API client → Verify endpoint: posts to verify
frontend/app.js - Upload API client → Register endpoint: posts to store
frontend/app.js - Verify endpoint → Tamper detector: checks document
backend/main.py - Register endpoint → SHA-256 hashing: computes hash
backend/main.py - Verify endpoint → Contract manager: checks registry
backend/main.py - Register endpoint → Contract manager: registers hash
backend/main.py - Tamper detector → SHA-256 hashing: computes fingerprint
backend/tamper_detector.py - Tamper detector → Binary signatures: scans signatures
backend/tamper_detector.py - Tamper detector → PDF inspection: checks PDFs
backend/tamper_detector.py - Tamper detector → Image structure check: checks image structure
backend/tamper_detector.py - Tamper detector → Metadata inspection: inspects metadata
backend/tamper_detector.py - Tamper detector → Error level analysis: runs ELA
backend/tamper_detector.py - PDF inspection → Error level analysis: analyzes rendered pages
backend/tamper_detector.py - Contract manager → Certificate contract: loads and compiles
blockchain/contract_manager.py - Contract manager → Blockchain registry: reads and writes hashes
blockchain/contract_manager.py - Contract manager → Ganache node: connects via Web3
blockchain/contract_manager.py - Certificate contract → Blockchain registry: stores certificate hashes
- Verify endpoint → Upload API client: returns status
frontend/app.js - Register endpoint → Upload API client: returns registration result
frontend/app.js