Speak now
Please Wait Image Converting Into Text...
Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Challenge yourself and boost your learning! Start the quiz now to earn credits.
Unlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
General Tech Technology & Software 2 years ago
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.
Turn Your Knowledge into Earnings.
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
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
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.
General Tech 9 Answers
General Tech 7 Answers
General Tech 3 Answers
General Tech 2 Answers
Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.