How sarthakavhad06/securevote works
SecureVote is a Flask voting interface backed by a Solidity contract on a local Ganache chain. Voters choose an unlocked wallet and candidate; Flask validates the request, submits a contract transaction, and reports its confirmation. The dashboard and JSON endpoints read vote totals, chain status, and VoteCast history from the chain. Deployment compiles and installs the contract. The README documents contract and interface capabilities; source excerpts show Flask routes and deployment behavior, but not the contract or template internals.
Main entry points: app.py Flask routes · deploy.py Contract deployer · Voting.sol Voting contract · index.html Voting page
Components 7
Voting interface
- Voting page
templates/index.html - Responsive styling
static/style.css
Flask application
- Flask routes
app.py
Blockchain voting
- Ganache node
- Voting contract
contracts/Voting.sol
Contract deployment
- Contract deployer
deploy.py
Other components
- Voter
Connections 6
- Voter → Flask routes: submits vote
README.md - Flask routes → Voting page: renders
app.py - Flask routes → Ganache node: reads and submits
app.py - Flask routes → Voting contract: queries and votes
README.md - Contract deployer → Ganache node: deploys to
README.md - Contract deployer → Voting contract: compiles and deploys
README.md