stonecoldpat / anonymousvoting

Anonymous voting on Ethereum without a tally authority. Protocol from this paper http://homepages.cs.ncl.ac.uk/feng.hao/files/OpenVote_IET.pdf
340 stars 88 forks source link

AnonymousVoting.sol: avoid jump and jumpi instructions #17

Open fedorloshakov opened 6 years ago

fedorloshakov commented 6 years ago

Due to warnings, replacing jump and jumpi instructions with for and switch assembly commands. Because of if, for whatever reason, caused errors during compilation, use switch as an alternative with empty default case.

Signed-off-by: Fedor Loshakov fedorloshakov@gmail.com