File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -2960,6 +2960,19 @@ def case18_fail_pairing_check():
2960
2960
+ int_to_hex (int (neg (G2 )[1 ].coeffs [1 ]), 64 ),
2961
2961
"ExpectedError" : "g2 point is not in the correct subgroup" ,
2962
2962
"Name" : "bls_pairing_e(G1,G2_not_in_correct_subgroup)=e(-G1,G2)"
2963
+ },
2964
+ {
2965
+ "Input" : ""
2966
+ # G1 point (not in correct subgroup but invalid curve)
2967
+ + int_to_hex (int (G1_in_correct_subgroup_invalid_curve [0 ]), 64 )
2968
+ + int_to_hex (int (G1_in_correct_subgroup_invalid_curve [1 ]), 64 )
2969
+ # G2 point
2970
+ + int_to_hex (int (G2 [0 ].coeffs [0 ]), 64 )
2971
+ + int_to_hex (int (G2 [0 ].coeffs [1 ]), 64 )
2972
+ + int_to_hex (int (G2 [1 ].coeffs [0 ]), 64 )
2973
+ + int_to_hex (int (G2 [1 ].coeffs [1 ]), 64 ),
2974
+ "ExpectedError" : "invalid point: not on curve" ,
2975
+ "Name" : "bls_pairing_e(G1_in_correct_subgroup_invalid_curve,G2)" ,
2963
2976
}
2964
2977
]
2965
2978
You can’t perform that action at this time.
0 commit comments