Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
frog711 committed Dec 6, 2023
2 parents 82e0e97 + 9aeac57 commit a2af008
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/algos/verifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,14 @@ def verification_of_a_ballot_entry(pk: bytearray, l: str, z: bytearray, encrypte

if verification_of_proof(pk, l, z, encrypted_choices, private_credentials, z) is False:
return False

for t in range(0, len(encrypted_choices)):
if verification_of_proof(pk, l, z, encrypted_choices, encrypted_coins[t], encrypted_choices[t][0]) is False:
return False

return True


def verification_of_proof(pk: bytearray, l: str, z: bytearray, encrypted_choices: typing.List, proof: tuple, verify: bytearray):
"""
Verifies a Zero-Knowledge-Proof
Expand Down

0 comments on commit a2af008

Please sign in to comment.