Skip to content

Commit

Permalink
remove old JSON package
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnLCaron committed Jun 27, 2023
1 parent 68f4ad7 commit b993d97
Show file tree
Hide file tree
Showing 37 changed files with 206 additions and 2,014 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,17 +176,6 @@ class TallyDecryptor(
// this is the verifier proof (box 8)
private fun DecryptedTallyOrBallot.Selection.verifySelection(): Boolean {
return this.proof.validate2(publicKey.key, extendedBaseHash, this.kExpTally, this.encryptedVote)

/*
val M: ElementModP = this.encryptedVote.data / this.kExpTally // 8.1
val a = group.gPowP(this.proof.r) * (publicKey powP this.proof.c) // 8.2
val b = (this.encryptedVote.pad powP this.proof.r) * (M powP this.proof.c) // 8.3
// The challenge value c satisfies c = H(HE ; 30, K, A, B, a, b, M ). 8.B, eq 72
val challenge = hashFunction(extendedBaseHash.bytes, 0x30.toByte(), publicKey.key, this.encryptedVote.pad, this.encryptedVote.data, a, b, M)
return (challenge.toElementModQ(group) == this.proof.c)
*/
}

// Verify with spec 1.9 eq 75, 76
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

105 changes: 0 additions & 105 deletions egklib/src/commonMain/kotlin/electionguard/json/ElGamalJson.kt

This file was deleted.

Loading

0 comments on commit b993d97

Please sign in to comment.