Guest User

Untitled

a guest
Jan 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. contract Voting {
  2. bytes32[] public encryptedVotes;
  3. bytes32[] public candidateList;
  4. address[] public pollingStationList;
  5. address public owner;
  6. function Voting(bytes32[] _candidateList, address[] _pollingStationList) public {
  7. candidateList = _candidateList;
  8. pollingStationList = _pollingStationList;
  9. owner = msg.sender;
  10. }
  11.  
  12. function vote(bytes32 encryptedVote) public {
  13. encryptedVotes.push(encryptedVote);
  14. }
  15.  
  16. function getEncryptedVotes() view public returns (bytes32[]) {
  17. return encryptedVotes;
  18. }
  19. }
Add Comment
Please, Sign In to add comment