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

RunDecryptBallots doesnt need the encrypted tally. #72

Merged
merged 1 commit into from
Apr 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,18 @@ class RunTrustedBallotDecryption {
val stopwatch = Stopwatch() // start timing here

val consumerIn = makeConsumer(inputDir)
val result: Result<TallyResult, ErrorMessages> = consumerIn.readTallyResult()
val result: Result<ElectionInitialized, ErrorMessages> = consumerIn.readElectionInitialized()
if (result is Err) {
logger.error { result.error.toString() }
return Pair(1,0)
}
val tallyResult = result.unwrap()
val guardians = Guardians(consumerIn.group, tallyResult.electionInitialized.guardians)
val electionInitialized = result.unwrap()
val guardians = Guardians(consumerIn.group, electionInitialized.guardians)

val decryptor = BallotDecryptor(
consumerIn.group,
tallyResult.electionInitialized.extendedBaseHash,
tallyResult.electionInitialized.jointPublicKey,
electionInitialized.extendedBaseHash,
electionInitialized.jointPublicKey,
guardians,
decryptingTrustees,
)
Expand Down
Loading