Skip to content

Commit 6765fff

Browse files
committed
improving formatting
1 parent 8227de2 commit 6765fff

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

main.py

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2730,7 +2730,7 @@ def case18_fail_pairing_check():
27302730
# G1 point 2
27312731
+ int_to_hex(int(G1[0]), 64)
27322732
+ int_to_hex(int(G1[1]), 64)
2733-
# G1 point 2
2733+
# G2 point 2
27342734
+ int_to_hex(int(neg(G2)[0].coeffs[0]), 64)
27352735
+ int_to_hex(int(neg(G2)[0].coeffs[1]), 64)
27362736
+ int_to_hex(int(neg(G2)[1].coeffs[0]), 64)
@@ -2787,10 +2787,23 @@ def case18_fail_pairing_check():
27872787
"Name": "bls_pairing_e(G1,G2_not_on_curve)",
27882788
},
27892789
{
2790-
"Input": int_to_hex(int(G1[0]), 64) + (int_to_hex(int(P1[1]), 64)) + int_to_hex(int(G2[0].coeffs[0]), 64) + int_to_hex(
2791-
int(G2[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(
2792-
int(G1[0]), 64) + (int_to_hex(int(G1[1]), 64)) + int_to_hex(int(neg(G2)[0].coeffs[0]), 64) + int_to_hex(
2793-
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),
2790+
"Input": ""
2791+
# G1 point (not on curve)
2792+
+ int_to_hex(int(G1[0]), 64)
2793+
+ int_to_hex(int(P1[1]), 64)
2794+
# G2 point 1
2795+
+ int_to_hex(int(G2[0].coeffs[0]), 64)
2796+
+ int_to_hex(int(G2[0].coeffs[1]), 64)
2797+
+ int_to_hex(int(G2[1].coeffs[0]), 64)
2798+
+ int_to_hex(int(G2[1].coeffs[1]), 64)
2799+
# G1 point 2
2800+
+ int_to_hex(int(G1[0]), 64)
2801+
+ int_to_hex(int(G1[1]), 64)
2802+
# G2 point 2
2803+
+ int_to_hex(int(neg(G2)[0].coeffs[0]), 64)
2804+
+ int_to_hex(int(neg(G2)[0].coeffs[1]), 64)
2805+
+ int_to_hex(int(neg(G2)[1].coeffs[0]), 64)
2806+
+ int_to_hex(int(neg(G2)[1].coeffs[1]), 64),
27942807
"ExpectedError": "invalid point: not on curve",
27952808
"Name": "bls_pairing_e(G1_not_on_curve,-G2)=e(-G1,G2)"
27962809
},

0 commit comments

Comments
 (0)