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, )