@@ -2594,10 +2594,23 @@ def case18_fail_pairing_check():
2594
2594
"Name" : "bls_pairing_missing_data"
2595
2595
},
2596
2596
{
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 ),
2601
2614
"ExpectedError" : "invalid input length" ,
2602
2615
"Name" : "bls_pairing_extra_data"
2603
2616
},
0 commit comments