Skip to content

virtualvasu/SmartContract-VotingSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SmartContract-VotingSystem

This repository contains a Ballot smart contract implemented in Solidity, designed to facilitate a simple and secure voting system on the Ethereum blockchain. This contract enables users to propose candidates, delegate votes, and cast votes with transparency. Once successfully implemented, the voting process can be conducted using a mobile device connected to the blockchain.

Features

  1. The chairperson (owner) can input multiple candidates' names to be voted on by the voters.
  2. Each voter is given the Right to Vote, and a weight can be assigned to their vote.
  3. A voter can only cast a single vote during an election.
  4. Candidate names are encrypted using Base32 throughout the voting process.
  5. The winner's name is decrypted and revealed at the end of the election.

Tools

Deployment Steps

  1. Compiling the Code
    Compile the smart contract using Remix IDE.

    1

  2. Selecting the Chairperson's Account
    Select the account to act as the chairperson for the election.

    2

  3. Encrypting Candidates' Names
    Convert the names of the candidates to an encrypted format using Base32.

    3

  4. Adding Candidates to the Contract
    Provide the array of encrypted candidates' names to the contract for voting.

    4

  5. Granting Voting Rights
    Assign the Right to Vote to selected individuals.

    6

  6. Casting Votes
    Voters can cast their votes for the desired candidates.

    5

  7. Declaring the Winner
    The winner is declared, but their name remains encrypted at this stage.

    7

  8. Decrypting the Winner's Name
    The winning candidate's name is decrypted and revealed at the end of the election.

    8


This smart contract enhances the security and transparency of the voting process by utilizing Ethereum blockchain technology, making it highly suitable for digital voting systems.

About

A weighted voting system based on Ethereum blockchain.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published