Skip to content

Commit f37eed6

Browse files
committed
improving formatting
1 parent 6765fff commit f37eed6

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

main.py

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2808,10 +2808,23 @@ def case18_fail_pairing_check():
28082808
"Name": "bls_pairing_e(G1_not_on_curve,-G2)=e(-G1,G2)"
28092809
},
28102810
{
2811-
"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(
2812-
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(
2813-
int(G1[0]), 64) + (int_to_hex(int(G1[1]), 64)) + int_to_hex(int(neg(G2)[0].coeffs[0]), 64) + int_to_hex(
2814-
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),
2811+
"Input": ""
2812+
# G1 point 1
2813+
+ int_to_hex(int(G1[0]), 64)
2814+
+ int_to_hex(int(G1[1]), 64)
2815+
# G2 point 1 (not on curve)
2816+
+ int_to_hex(int(G2[0].coeffs[0]), 64)
2817+
+ int_to_hex(int(P2[0].coeffs[1]), 64)
2818+
+ int_to_hex(int(G2[1].coeffs[0]), 64)
2819+
+ int_to_hex(int(G2[1].coeffs[1]), 64)
2820+
# G1 point 2
2821+
+ int_to_hex(int(G1[0]), 64)
2822+
+ int_to_hex(int(G1[1]), 64)
2823+
# G2 point 2
2824+
+ int_to_hex(int(neg(G2)[0].coeffs[0]), 64)
2825+
+ int_to_hex(int(neg(G2)[0].coeffs[1]), 64)
2826+
+ int_to_hex(int(neg(G2)[1].coeffs[0]), 64)
2827+
+ int_to_hex(int(neg(G2)[1].coeffs[1]), 64),
28152828
"ExpectedError": "invalid point: not on curve",
28162829
"Name": "bls_pairing_e(G1,G2_not_on_curve)=e(-G1,G2)"
28172830
},

0 commit comments

Comments
 (0)