An online voting system using blockchain technology [closed]

General Tech Technology & Software 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Technology & Software related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

i gotta develop an online voting system for the student elections using blockchain technology for my university project. following are the basic requirements for my system: 1. students should be able to cast vote 2. real time results of the elections.

I am using truffle, testrpc and vanilla javascript for now to connect my smart contract with the front end , i have decided that whenever a voter cast vote to their preferred candidate, that transaction of voting process or their votes is stored in the blockchain . i am trying to implement php to make my front end dynamic and mysql for backend just to add candidatees or for the login process of the students. but i am confused about whether to add voters and candidates in the blockchain or the new proposals for the elections. can someone help me out here please? T

profilepic.png
manpreet 2 years ago

 

The voting contract should be configurable. Like you can deploy for many time for different times of voting.

In user creation part, You should add the user's public address to the Blockchain in Users map structure, then only you can validate whether the user already voted or not in the blockchain. Otherwise, you will not use blockchain real data. You have to display blockchain data whenever an application connected.

Saving the data in MySQL and only executing code in blockchain will not utilize the ability of blockchain 100%.

Using Web3 logs, you have all the states of the application and update in your database.

Even though you allow users to create a login through the application, their public keys should get created and add to the blockchain.

Whenever you deploy a voting contract the candidates or proposals should pass through the contract creation means proposals should be created through the contract constructor.

So that you can run multiple voting by deploying to different contract address

 

0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

tuteehub community

Join Our Community Today

Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.

tuteehub community