Research Article

A Practical Anonymous Voting Scheme Based on Blockchain for Internet of Energy

Algorithm 6

setAnmVote.
Input
(1)require(msg.sender = =  );
(2)fori = 0 to do
(3) =  [];
(4) =  [];
(5)  =  [];
(6) require(voters .si ) = = 0);
(7) voters .si  = ;
(8) voters .ci_pi  = ;
(9)end for