Election-Tech-Initiative / Election-Tech-Initiative/electionguard
🗂. SubmittedBallot should serialize a readable state not number
Open
enhancement
question
- Dominant language
- Python
- Stars
- 872
- Forks
- 131
- PR merge metrics
- No merged PRs in 30d
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Suggestion
SubmittedBallot.state: BallotBoxState is encoded as a number. This is the only place that indicates whether the ballot is cast or spoiled and is only a 0 or 1. Would be disastrous for this to be misinterpreted.
### Possible Implementation
Recommend that it be the name of the enum to remove ambiguity and language dependence.
### Anything else?
Original Issue by @JohnLCaron
https://github.com/microsoft/electionguard-python/issues/522
Contributor guide
Assessment
This issue has not been assessed yet.