Commit e7e60a95 authored by Aditya Damodaran's avatar Aditya Damodaran
Browse files

PEP-8

parent bbdc3a67
......@@ -827,7 +827,8 @@ parser.add_argument(
"--keylength",
metavar="K",
type=int,
help="Paillier Encryption key size. (Supported values: 1024, 2048; Default: 2048)",
help="Paillier Encryption key size."
+ " (Supported values: 1024, 2048; Default: 2048)",
)
parser.add_argument(
"-r",
......
......@@ -161,8 +161,8 @@ class FZK:
witness_integer_openings,
) = sigma_protocol.prepare_integer_commitments(witness)
witness_paillier_ciphertexts = (
sigma_protocol.prepare_paillier_ciphertexts(witness)
witness_paillier_ciphertexts = sigma_protocol.prepare_paillier_ciphertexts(
witness
)
(
......@@ -172,10 +172,8 @@ class FZK:
dict_from_class(random_witness)
)
random_paillier_ciphertexts = (
sigma_protocol.prepare_random_paillier_ciphertexts(
dict_from_class(random_witness)
)
random_paillier_ciphertexts = sigma_protocol.prepare_random_paillier_ciphertexts(
dict_from_class(random_witness)
)
c = sigma_protocol.verifier_step_1()
t = {
......@@ -520,11 +518,9 @@ class FZK_PR3:
"penco": paillier_ciphertext_open_v,
}
)
paillier_ciphertext_random_open_v = (
self.paillier_encryption.encrypt(
self.public_key,
integer(sha256(bytes(str(random_opening_v), "utf-8"))),
)
paillier_ciphertext_random_open_v = self.paillier_encryption.encrypt(
self.public_key,
integer(sha256(bytes(str(random_opening_v), "utf-8"))),
)
paillier_ciphertext_random_v = self.paillier_encryption.encrypt(
self.public_key, integer(sha256(bytes(str(random_v), "utf-8")))
......
......@@ -1275,9 +1275,7 @@ class SigmaProtocol:
witness_integer_openings,
)
def verifier_step_1(
self,
):
def verifier_step_1(self,):
return pairing_group.random(ZR)
def verifier_step_2(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment