diff --git a/main.py b/main.py index a1633b8..20712a5 100644 --- a/main.py +++ b/main.py @@ -1381,6 +1381,14 @@ def case18_fail_pairing_check(): int(neg(G2)[0].coeffs[1]), 64) + int_to_hex(int(neg(G2)[1].coeffs[0]), 64) + int_to_hex(int(neg(G2)[1].coeffs[1]), 64), "ExpectedError": "invalid point: not on curve", "Name": "bls_pairing_g1_not_on_curve" + }, + { + "Input": int_to_hex(int(G1[0]), 64) + (int_to_hex(int(G1[1]), 64)) + int_to_hex(int(G2[0].coeffs[0]), 64) + int_to_hex( + int(P2[0].coeffs[1]), 64) + int_to_hex(int(G2[1].coeffs[0]), 64) + int_to_hex(int(G2[1].coeffs[1]), 64) + int_to_hex( + int(G1[0]), 64) + (int_to_hex(int(G1[1]), 64)) + int_to_hex(int(neg(G2)[0].coeffs[0]), 64) + int_to_hex( + int(neg(G2)[0].coeffs[1]), 64) + int_to_hex(int(neg(G2)[1].coeffs[0]), 64) + int_to_hex(int(neg(G2)[1].coeffs[1]), 64), + "ExpectedError": "invalid point: not on curve", + "Name": "bls_pairing_g2_not_on_curve" } ]