Skip to content

Commit

Permalink
fixes final exp test for the CP curve (#672)
Browse files Browse the repository at this point in the history
  • Loading branch information
swasilyev authored Aug 31, 2023
1 parent 9db6cf6 commit af981f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test-templates/src/pairing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ macro_rules! test_pairing {
for _ in 0..ITERATIONS {
let rng = &mut test_rng();
let fp_ext = <$Pairing as Pairing>::TargetField::rand(rng);
let gt = <$Pairing>::final_exponentiation(MillerLoopOutput(fp_ext))
let gt = <$Pairing as Pairing>::final_exponentiation(MillerLoopOutput(fp_ext))
.unwrap()
.0;
let r = <$Pairing as Pairing>::ScalarField::MODULUS;
Expand Down

0 comments on commit af981f3

Please sign in to comment.