How yash17013366/ipfs-based-decentralized-voting-system works
This browser-based voting application takes an election from candidate setup and voter registration through ID-validated vote casting, live results, and winner declaration; it also offers JSON export and printable voter cards. The main script coordinates election state and the IPFS service, which stores vote records and election data, with a localStorage hash pointer and gateway fallback. The graph combines sampled script and service behavior with README-documented capabilities; unsampled UI wiring and feature implementations are not inferred.
Main entry points: index.html Voting UI · ipfs-service.js IPFS Service · script.js Vote Casting · styles.css Interface Styling
Components 17
Election Setup
- Candidate Management
script.js - Voter Registration
script.js - Printable Voter Cards
script.js
Voting and Results
- Voter Validation
script.js - Vote Casting
script.js - Election Timing
script.js - Live Results
script.js - Winner Declaration
script.js - JSON Export
script.js - Election State
script.js
Persistence
- IPFS Service
ipfs-service.js - Hash Persistence
ipfs-service.js
Application Interface
- Voting UI
index.html - Interface Styling
styles.css
Other components
- Election Admin
- Voter
- IPFS Network
Connections 17
- Election Admin → Voting UI: manages election
README.md - Voter → Voting UI: casts vote
README.md - Voting UI → Candidate Management: administers candidates
README.md - Voting UI → Voter Registration: registers voters
README.md - Voter Registration → Printable Voter Cards: prints cards
README.md - Voting UI → Voter Validation: validates voter ID
README.md - Voting UI → Vote Casting: submits vote
script.js - Vote Casting → Election State: updates vote state
script.js - Voting UI → Election Timing: ends on deadline
script.js - Voting UI → Live Results: updates live results
README.md - Live Results → Winner Declaration: declares winner
README.md - Voting UI → JSON Export: exports data
README.md - Voting UI → IPFS Service: loads and saves state
- Vote Casting → IPFS Service: saves vote record
script.js - IPFS Service → Hash Persistence: stores hash
ipfs-service.js - IPFS Service → IPFS Network: uploads and retrieves
ipfs-service.js - Voting UI → Interface Styling: uses layout styles