@@ -2573,10 +2573,23 @@ def case18_fail_pairing_check():
2573
2573
"Name" : "bls_pairing_empty_input"
2574
2574
},
2575
2575
{
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 ),
2580
2593
"ExpectedError" : "invalid input length" ,
2581
2594
"Name" : "bls_pairing_missing_data"
2582
2595
},
0 commit comments