How sushanth-gs-bit/pb_hackathon works
This is a small Flask academic-certificate demo: users can add records, inspect the chain, verify certificates, check integrity, and simulate tampering. The browser-side script calls Flask endpoints; the Flask handlers validate and process requests using an in-memory blockchain, whose blocks are linked and checked with hashes. The README gives no architectural detail, so the map relies on the shown Flask and JavaScript excerpts; template contents and unsampled frontend behavior are not inferred.
Main entry points: blockchain.py Chain management · script.js Client interactions · app.py Flask routes · index.html Browser interface
Components 10
Web interface
- Browser interface
templates/index.html - Client interactions
static/script.js
Flask API
- Flask routes
app.py - Record intake
app.py - Certificate lookup
app.py - Integrity check
app.py - Tamper demo
app.py
Blockchain core
- Chain management
blockchain.py - Block hashing
blockchain.py
Other components
- User
Connections 14
- User → Browser interface: uses
- Flask routes → Browser interface: renders
app.py - Client interactions → Flask routes: fetches chain
static/script.js - Client interactions → Record intake: submits record
static/script.js - Client interactions → Certificate lookup: checks certificate
static/script.js - Client interactions → Tamper demo: requests tamper
static/script.js - Record intake → Chain management: adds record
app.py - Certificate lookup → Chain management: searches chain
app.py - Certificate lookup → Chain management: checks validity
app.py - Integrity check → Chain management: checks validity
app.py - Tamper demo → Chain management: modifies and checks
app.py - Flask routes → Chain management: reads chain
app.py - Chain management → Block hashing: creates blocks
blockchain.py - Block hashing → Block hashing: calculates hash
blockchain.py