Skip to content

Commit 72f47fb

Browse files
committed
adding more tests
1 parent 9a6ae31 commit 72f47fb

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
@@ -3035,6 +3035,19 @@ def case18_fail_pairing_check():
30353035
+ int_to_hex(int(G2[1].coeffs[1]), 64),
30363036
"ExpectedError": "invalid point: not on curve",
30373037
"Name": "bls_pairing_e(G1_in_correct_subgroup_invalid_curve,G2)",
3038+
},
3039+
{
3040+
"Input": ""
3041+
# G1 point
3042+
+ int_to_hex(int(G1[0]), 64)
3043+
+ int_to_hex(int(G1[1]), 64)
3044+
# G2 point (not in correct subgroup but invalid curve)
3045+
+ int_to_hex(int(G2_in_correct_subgroup_invalid_curve[0].coeffs[0]), 64)
3046+
+ int_to_hex(int(G2_in_correct_subgroup_invalid_curve[0].coeffs[1]), 64)
3047+
+ int_to_hex(int(G2_in_correct_subgroup_invalid_curve[1].coeffs[0]), 64)
3048+
+ int_to_hex(int(G2_in_correct_subgroup_invalid_curve[1].coeffs[1]), 64),
3049+
"ExpectedError": "invalid point: not on curve",
3050+
"Name": "bls_pairing_e(G1,G2_in_correct_subgroup_invalid_curve)",
30383051
}
30393052
]
30403053

0 commit comments

Comments
 (0)