File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ class ElectionPartialKeyChallenge(NamedTuple):
131131 The sequence order of the designated guardian
132132 """
133133
134- value : int
134+ value : ElementModQ
135135 coefficient_commitments : List [ElementModP ]
136136 coefficient_proofs : List [SchnorrProof ]
137137
@@ -264,9 +264,7 @@ def generate_election_partial_key_challenge(
264264 backup .owner_id ,
265265 backup .designated_id ,
266266 backup .designated_sequence_order ,
267- compute_polynomial_coordinate (
268- backup .designated_sequence_order , polynomial
269- ).to_int (),
267+ compute_polynomial_coordinate (backup .designated_sequence_order , polynomial ),
270268 backup .coefficient_commitments ,
271269 backup .coefficient_proofs ,
272270 )
@@ -286,7 +284,7 @@ def verify_election_partial_key_challenge(
286284 challenge .designated_id ,
287285 verifier_id ,
288286 verify_polynomial_coordinate (
289- get_optional ( int_to_q ( challenge .value )) ,
287+ challenge .value ,
290288 challenge .designated_sequence_order ,
291289 challenge .coefficient_commitments ,
292290 ),
You can’t perform that action at this time.
0 commit comments