Chainvote
Voting system using Blockchain
The problem Chainvote solves
The problem it solves:
In many small organizations such as college clubs, societies, committees, and student bodies, elections are usually conducted using manual methods, Google Forms, or centralized online platforms. These methods have several limitations. Votes can be modified or deleted by admins, results are not fully transparent, and participants have to blindly trust the authority conducting the election. There is also no reliable way for a voter to verify whether their vote was actually counted.
ChainVote solves this trust problem:
ChainVote provides a transparent and tamper-proof voting system using blockchain technology. Once a vote is cast, it is permanently recorded on the blockchain and cannot be changed or removed by anyone. This removes the need to trust a central authority and ensures fairness in the election process.
Key features of ChainVote
• Wallet-based voting:
Each voter uses their crypto wallet (MetaMask) as their identity. This removes the need for usernames and passwords.
• One person, one vote:
The smart contract ensures that each eligible wallet address can vote only once.
• Admin-controlled eligibility:
The election admin can allowlist valid voter addresses before the election starts, preventing unauthorized voting.
• Transparent and verifiable results:
All votes are stored on the blockchain, and results can be publicly verified by anyone.
• Vote confirmation:
After voting, users receive confirmation that their vote has been successfully recorded on the blockchain.
• Decentralized backend:
The core election logic runs on a smart contract deployed on the Ethereum Sepolia testnet, making it immutable and trustless.
Working mechanism of the project
- Wallet connection
The user connects their MetaMask wallet to the ChainVote website. The wallet address acts as the voter’s identity. - Network verification
The application checks whether the user is connected to the Sepolia testnet. If not, the user is asked to switch networks. - Admin setup
The admin creates a poll and registers eligible voter wallet addresses using the smart contract. - Voting process
An eligible voter selects a candidate and submits their vote. The smart contract verifies eligibility and ensures the voter has not voted before. - Blockchain recording
The vote is recorded on the blockchain as a transaction, making it permanent and tamper-proof. - Result display
Vote counts are fetched directly from the smart contract and displayed on the results page in real time.
Why blockchain is used?
Blockchain is used to ensure immutability, transparency, and trustlessness. Unlike traditional systems, no single authority can manipulate votes or results. Every action is verifiable on the blockchain, making the election process fair and reliable.
Intended use cases:
ChainVote is designed for:
• College elections
• Club or society voting
• Committee decisions
• Small organizations and DAOs
It is not intended for national-level elections, but as a secure and practical solution for small-scale voting systems.
Challenges we ran into
One of the major challenges I faced while building this project was understanding and setting up the blockchain environment correctly, especially as a beginner in Web3.
The first issue was network mismatch in MetaMask. Initially, the application was trying to interact with the Sepolia testnet, but MetaMask was connected to the Ethereum Mainnet. This caused errors like “failed to connect to contract” even though the frontend code was working fine. It took time to realize that the problem was not in the code, but in the wallet network configuration.
Another challenge was adding and configuring the Sepolia network manually. MetaMask did not recognize the network automatically, and incorrect RPC URLs or missing https:// caused connection failures. I had to understand how RPC endpoints work and switch to a more reliable public RPC to make the network stable.
Getting Sepolia test ETH was also a hurdle. Some faucets required authentication or had rate limits, which slowed down testing. Without test ETH, deploying and interacting with the smart contract was not possible.
On the frontend side, I faced issues where the UI looked correct, but actions were not working because the smart contract was not deployed yet or the contract address was missing. This helped me understand the importance of connecting all layers properly: frontend, wallet, and smart contract.
I overcame these challenges by carefully debugging each layer step by step, checking MetaMask network settings, reading error messages properly, and testing the workflow incrementally instead of assuming the issue was always in the code.
Tracks Applied (1)
