The Decentralized Voting System Using Blockchain Technology is a blockchain-based voting application developed as an academic project.
The main purpose of this project is to demonstrate how blockchain and smart contracts can be used to make voting more secure, transparent, and tamper-resistant.
The system uses Ethereum blockchain technology and allows users to connect their wallet using MetaMask and cast their votes through a web interface.
- Blockchain-based voting
- Secure vote recording
- MetaMask wallet integration
- Smart contract-based voting
- Ethereum Sepolia test network support
- Ganache local blockchain support
- Simple and user-friendly interface
- MySQL database integration
- Vote verification through blockchain transactions
- Blockchain: Ethereum
- Smart Contract: Solidity
- Test Network: Sepolia
- Wallet: MetaMask
- Smart Contract Tool: Remix IDE
- Local Blockchain: Ganache
- Framework: Truffle
- Frontend: HTML, CSS, JavaScript
- Runtime: Node.js
- Database: MySQL
- Version Control: Git & GitHub
The project can be tested on the Ethereum Sepolia test network using test ETH.
For local testing:
RPC URL: http://localhost:7545
Chain ID: 1337
Currency: ETH
MetaMask is used to connect the user's blockchain wallet with the voting application.
The user can:
- Open MetaMask.
- Connect the wallet to the required network.
- Open the voting application.
- Connect the wallet.
- Select a candidate.
- Confirm the transaction in MetaMask.
Never share or upload your MetaMask private key or recovery phrase.
The voting logic is implemented using a Solidity smart contract.
The smart contract manages the voting process and records voting-related information on the blockchain.
The contract can be developed and deployed using Remix IDE.
The project also uses MySQL for supporting application data.
Database name:
voter_db
XAMPP is not required for this project. MySQL can be used directly.
https://github.com/bhavyweb3/Decentralized-Voting-System.gitcd YOUR-REPOSITORYnpm installRun Ganache and use:
RPC: http://localhost:7545
Chain ID: 1337
Connect MetaMask to the Ganache network or Sepolia test network.
The smart contract can be deployed using Remix IDE or Truffle.
Open the frontend and connect MetaMask.
User
โ
Open Voting Website
โ
Connect MetaMask
โ
Select Candidate
โ
Submit Vote
โ
Confirm Transaction
โ
Smart Contract
โ
Blockchain
- Better voter verification
- Improved privacy
- Mobile application
- Better security
- Zero-knowledge proof integration
- Improved user interface
- Advanced election management
This project is developed for academic and educational purposes. It is a prototype and should not be used for real-world elections without additional security, privacy, authentication, and legal requirements.
This project demonstrates the use of Blockchain, Ethereum, Smart Contracts, MetaMask, and Web Technologies to develop a decentralized voting system.