Skip to content

Commit

Permalink
fail pairing
Browse files Browse the repository at this point in the history
  • Loading branch information
asanso committed Apr 23, 2024
1 parent 8280922 commit d5b068d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1357,6 +1357,14 @@ def case18_fail_pairing_check():
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),
"ExpectedError": "invalid input length",
"Name": "bls_pairing_extra_data"
},
{
"Input": "10" + 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(
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(
int(G1[0]), 64) + (int_to_hex(int(G1[1]), 64)) + int_to_hex(int(neg(G2)[0].coeffs[0]), 64) + int_to_hex(
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),
"ExpectedError": "invalid field element top bytes",
"Name": "bls_pairing_top_bytes"
}
]

Expand Down

0 comments on commit d5b068d

Please sign in to comment.