Research Article

A Manipulation Prevention Model for Blockchain-Based E-Voting Systems

Algorithm 1

Voting algorithm.
Input: Voter ID
Output: Sliced Encrypted Ballot
(1)Begin
(2)If Voter Id in Voter List Id then//Check Voter
(3)  Get the voter Token, set the password
(4)else not an eligible voter exit
(5)if (voter Id in registered voter list) then//check
    registered Voter
(6)  Check Token and Password
(7)else not registered voter exit
(8)if not voted (token and password) then
(9)  chose Candidate ID
(10) chipherData = HomomorphicEnc(Candidate ID)//data encryption
(11) chiperBallot = SecretShareSlicer (chipherData) //data share
(12) send chiperBallot to blockchain nodes
(13)else failed login exit
(14)END