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

EncryptedTally has no specified state to catch errors #83

Open
JohnLCaron opened this issue May 21, 2024 · 1 comment
Open

EncryptedTally has no specified state to catch errors #83

JohnLCaron opened this issue May 21, 2024 · 1 comment

Comments

@JohnLCaron
Copy link
Owner

An EncryptedTally has accumulated encoded counts with no internal state to catch errors.

Ive added in EncryptedTally:

  1. a list of castBallotIds so you can detect if ballot tries to get added twice
  2. the electionId, so you dont add a ballot to the wrong tally
  3. optional ballot_count in the contest should help diagnose miscounts.

Anticipating the possibility of a tree of tallies that need to be added together
4. In TallyResult, a list of tally ids that were summed to get the EncryptedTally.

Noe of these are part of the EG specification. They may in some case compromise privacy. So they need to be thought about for a specific use cases.

@JohnLCaron
Copy link
Owner Author

TODO: Make countNumberOfBallots nullable so its not serialized if its not enabled.

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

No branches or pull requests

1 participant