Research Article
A Practical Anonymous Voting Scheme Based on Blockchain for Internet of Energy
| Input | (1) | = crypto.randomBytes(32); | (2) | = crypto.randomBytes(32); | (3) | forj = 0 to do | (4) | = + G + | (5) | = getXpointFromPubkey n | (6) | = SHA256( + ) | (7) | = − | (8) | | (9) | = SHA256 ) | (10) | = secp256k1.ecdsaSign(, ) | (11) | | (12) | save(, , , ) | (13) | end for | (14) | await Contract.setAnmVote(, , , ); |
|