From 9baa56e5529a50b5baa23ac71f48f8e8ea856d94 Mon Sep 17 00:00:00 2001 From: JohnLCaron Date: Thu, 25 Apr 2024 16:50:07 -0600 Subject: [PATCH] RunDecryptBallots doesnt need the encrypted tally. --- .../cryptobiotic/eg/cli/RunTrustedBallotDecryption.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/org/cryptobiotic/eg/cli/RunTrustedBallotDecryption.kt b/src/main/kotlin/org/cryptobiotic/eg/cli/RunTrustedBallotDecryption.kt index 2ab8545..3773032 100644 --- a/src/main/kotlin/org/cryptobiotic/eg/cli/RunTrustedBallotDecryption.kt +++ b/src/main/kotlin/org/cryptobiotic/eg/cli/RunTrustedBallotDecryption.kt @@ -105,18 +105,18 @@ class RunTrustedBallotDecryption { val stopwatch = Stopwatch() // start timing here val consumerIn = makeConsumer(inputDir) - val result: Result = consumerIn.readTallyResult() + val result: Result = 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, )