Skip to content

Commit a651425

Browse files
committed
improving formatting
1 parent edf93f4 commit a651425

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
@@ -2573,10 +2573,23 @@ def case18_fail_pairing_check():
25732573
"Name": "bls_pairing_empty_input"
25742574
},
25752575
{
2576-
"Input": int_to_hex(int(G1[0]), 63) + (int_to_hex(int(G1[1]), 64)) + int_to_hex(int(G2[0].coeffs[0]), 64) + int_to_hex(
2577-
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(
2578-
int(G1[0]), 64) + (int_to_hex(int(G1[1]), 64)) + int_to_hex(int(neg(G2)[0].coeffs[0]), 64) + int_to_hex(
2579-
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),
2576+
"Input": ""
2577+
# G1 point 1 (short x coordinate)
2578+
+ int_to_hex(int(G1[0]), 63)
2579+
+ int_to_hex(int(G1[1]), 64)
2580+
# G2 point 1
2581+
+ int_to_hex(int(G2[0].coeffs[0]), 64)
2582+
+ int_to_hex(int(G2[0].coeffs[1]), 64)
2583+
+ int_to_hex(int(G2[1].coeffs[0]), 64)
2584+
+ int_to_hex(int(G2[1].coeffs[1]), 64)
2585+
# G1 point 2
2586+
+ int_to_hex(int(G1[0]), 64)
2587+
+ int_to_hex(int(G1[1]), 64)
2588+
# G2 point 2
2589+
+ int_to_hex(int(neg(G2)[0].coeffs[0]), 64)
2590+
+ int_to_hex(int(neg(G2)[0].coeffs[1]), 64)
2591+
+ int_to_hex(int(neg(G2)[1].coeffs[0]), 64)
2592+
+ int_to_hex(int(neg(G2)[1].coeffs[1]), 64),
25802593
"ExpectedError": "invalid input length",
25812594
"Name": "bls_pairing_missing_data"
25822595
},

0 commit comments

Comments
 (0)