Research Article
A Practical Anonymous Voting Scheme Based on Blockchain for Internet of Energy
| Input | (1) | (v, , ) = await Contract.getAnmtVote | (2) | ifthen | (3) | Return | (4) | end if | (5) | H = SHA256 | (6) | S = secp256k1.ecdsaVerify(, H, ) | (7) | ifthen | (8) | = − | (9) | else | (10) | Return | (11) | end if | (12) | await Contract.signAnmVote(, ) |
|