Skip to content

Commit 089a978

Browse files
committed
additional tests
1 parent f5e8027 commit 089a978

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

main.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2960,6 +2960,19 @@ def case18_fail_pairing_check():
29602960
+ int_to_hex(int(neg(G2)[1].coeffs[1]), 64),
29612961
"ExpectedError": "g2 point is not in the correct subgroup",
29622962
"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)",
29632976
}
29642977
]
29652978

0 commit comments

Comments
 (0)