Skip to content

Commit 4a45f3a

Browse files
committed
improving formatting
1 parent a651425 commit 4a45f3a

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
@@ -2594,10 +2594,23 @@ def case18_fail_pairing_check():
25942594
"Name": "bls_pairing_missing_data"
25952595
},
25962596
{
2597-
"Input": int_to_hex(int(G1[0]), 65) + (int_to_hex(int(G1[1]), 64)) + int_to_hex(int(G2[0].coeffs[0]), 64) + int_to_hex(
2598-
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(
2599-
int(G1[0]), 64) + (int_to_hex(int(G1[1]), 64)) + int_to_hex(int(neg(G2)[0].coeffs[0]), 64) + int_to_hex(
2600-
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),
2597+
"Input": ""
2598+
# G1 point 1 (long x coordinate)
2599+
+ int_to_hex(int(G1[0]), 65)
2600+
+ int_to_hex(int(G1[1]), 64)
2601+
# G2 point 1
2602+
+ int_to_hex(int(G2[0].coeffs[0]), 64)
2603+
+ int_to_hex(int(G2[0].coeffs[1]), 64)
2604+
+ int_to_hex(int(G2[1].coeffs[0]), 64)
2605+
+ int_to_hex(int(G2[1].coeffs[1]), 64)
2606+
# G1 point 2
2607+
+ int_to_hex(int(G1[0]), 64)
2608+
+ int_to_hex(int(G1[1]), 64)
2609+
# G2 point 2
2610+
+ int_to_hex(int(neg(G2)[0].coeffs[0]), 64)
2611+
+ int_to_hex(int(neg(G2)[0].coeffs[1]), 64)
2612+
+ int_to_hex(int(neg(G2)[1].coeffs[0]), 64)
2613+
+ int_to_hex(int(neg(G2)[1].coeffs[1]), 64),
26012614
"ExpectedError": "invalid input length",
26022615
"Name": "bls_pairing_extra_data"
26032616
},

0 commit comments

Comments
 (0)