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

Using contestData could be optional (by election or contest?) #65

Open
JohnLCaron opened this issue Apr 17, 2024 · 0 comments
Open

Using contestData could be optional (by election or contest?) #65

JohnLCaron opened this issue Apr 17, 2024 · 0 comments

Comments

@JohnLCaron
Copy link
Owner

Could make contestData optional (by election or contest?). Likely not always needed.

data class Contest(
override val contestId: String, // matches ContestDescription.contestIdd
override val sequenceOrder: Int, // matches ContestDescription.sequenceOrder
val contestHash: UInt256, // eq 58
override val selections: List,
val proof: ChaumPedersenRangeProofKnownNonce,
override val contestData: HashedElGamalCiphertext, // TODO make optional?
val preEncryption: PreEncryption? = null, // pre-encrypted ballots only
) : EncryptedBallotIF.Contest {

Savings is
EC: 33 + messageSize + 32 + 4 = typically 133 bytes
IG: 512 + messageSize + 32 + 4 = typically 612 bytes
messageSize = (1 + contestLimit) * 32

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