Skip to content

Commit f5e8027

Browse files
committed
additional tests
1 parent 495c616 commit f5e8027

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

main.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2465,6 +2465,21 @@ def case16_fail_msm_G1():
24652465
+ int_to_hex(int(2), 32),
24662466
"ExpectedError": "g1 point is not in the correct subgroup",
24672467
"Name": "bls_g1msm_g1_not_in_correct_subgroup"
2468+
},
2469+
{
2470+
"Input": ""
2471+
# G1 point (not in correct subgroup but invalid curve)
2472+
+ int_to_hex(int(G1_in_correct_subgroup_invalid_curve[0]), 64)
2473+
+ int_to_hex(int(G1_in_correct_subgroup_invalid_curve[1]), 64)
2474+
# scalar
2475+
+ int_to_hex(int(2), 32)
2476+
# P1 point
2477+
+ int_to_hex(int(P1[0]), 64)
2478+
+ int_to_hex(int(P1[1]), 64)
2479+
# scalar
2480+
+ int_to_hex(int(2), 32),
2481+
"ExpectedError": "invalid point: not on curve",
2482+
"Name": "bls_g1msm_point_in_correct_subgroup_invalid_curve"
24682483
}
24692484
]
24702485

0 commit comments

Comments
 (0)