How sushanth-gs-bit/pb-hack works
ChainCert is a Flask-based certificate and marks-record verification demo. Users issue or seed records, inspect and verify them, and can simulate edits to see exact hash, field-fingerprint, proof-of-work, and chain-link failures. The app restores and persists chain state and activity events in SQLite. The graph reflects README-documented dashboard and API capabilities; unsampled template details are not expanded, and edges are limited to relationships shown in excerpts or the README.
Main entry points: app.py Flask API and routes · blockchain.py Chain and block management · storage.py SQLite persistence and event log · index.html Dashboard
Components 13
Web application
- Flask API and routes
app.py - Dashboard
templates/index.html - Record validation and issuance
app.py - Tamper simulation
app.py - Chain export
app.py
Chain verification
- Chain and block management
blockchain.py - Hashing and proof of work
blockchain.py - Integrity validation report
blockchain.py - Record authenticity verification
blockchain.py
Persistence and demo data
- Sample certificates
samples.py - SQLite persistence and event log
storage.py
Other components
- Judge or issuer
- SQLite database
Connections 14
- Judge or issuer → Dashboard: uses
README.md - Dashboard → Flask API and routes: requests
README.md - Flask API and routes → Record validation and issuance: routes records
app.py - Record validation and issuance → Chain and block management: issues records
app.py - Chain and block management → Hashing and proof of work: mines blocks
blockchain.py - Flask API and routes → Integrity validation report: reports checks
README.md - Flask API and routes → Record authenticity verification: verifies records
README.md - Flask API and routes → Tamper simulation: handles edits
app.py - Tamper simulation → Chain and block management: edits blocks
README.md - Flask API and routes → Chain export: exports chain
README.md - Flask API and routes → Sample certificates: loads samples
README.md - Flask API and routes → SQLite persistence and event log: loads and saves
app.py - SQLite persistence and event log → SQLite database: reads and writes
storage.py - SQLite persistence and event log → Chain and block management: restores chain
storage.py