Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verifiability - add users' hash of the encrypted ballot for each election. #240

Open
chenchanglew opened this issue Dec 20, 2022 · 0 comments

Comments

@chenchanglew
Copy link
Contributor

chenchanglew commented Dec 20, 2022

Implementation step of Verifiability Documentation

  1. frontend: show a user the hash of their encrypted ballot. (Issue: Verifiability - show vote hash after casting a vote #239)
  2. smart-contract + proxy: add users' hash of the encrypted ballot (sha256) in the form. The hash will send along with the getForm to the user. (This issue)
  3. frontend: In the election info page, show a list of the voter who vote and their hash of encrypted votes got from the proxy. (Issue: Verifiability - show hash of encrypted vote in election detail pages #241)

How:
Update the form struct by adding an array variable to store the hash of encrypted votes.
Update the getForm function to return the hash of encrypted votes.

Where:
contracts/evoting/types/election.go
proxy/election.go getForm()

Target:
edit the unit tests in proxy, and update the getForm unit-test.
edit the unit tests in smart-contract, update the form related unit-test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant