On this page
What it is#
TrustVote is an election system that records votes on a blockchain so anyone can audit the result. Admins create elections through a factory contract, approved voters receive a voter NFT, and a public audit explorer shows each election's on-chain state alongside the database.
Why#
It was my final-year project for the B.Tech in Computer Science, built with Shubhom Ray.
Stack#
Solidity contracts (an election, an election factory and a voter NFT) built with Hardhat. Registration and approval run through an Express API with Prisma, and a Next.js front end handles wallet login. It's all one monorepo.
The hard part#
Keeping a vote secret on a public chain. Voting is commit-reveal: during the election the voter submits only a hash of their choice, kept locally in the browser, and reveals it once voting closes. New voters also have no gas to pay for transactions, so approving a voter automatically funds their wallet whenever its balance drops below a threshold.
Status#
Finished as coursework; archived. The code is private.