Skip to content

Commit

Permalink
mul
Browse files Browse the repository at this point in the history
  • Loading branch information
asanso committed Mar 5, 2024
1 parent ea81694 commit c1e0a32
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,20 @@ def case03_mul_G1():
assert result_doubling_P1 == multiply(P1, 2)

yield 'mul_G1_bls', [
{
"Input": int_to_hex(int(G1[0]), 64) + (int_to_hex(int(G1[1]), 64)) + int_to_hex(int(1), 32),
"Name": "bls_g1mul_(1*g1=g1)",
"Expected": int_to_hex(int(G1[0]), 64) + (int_to_hex(int(G1[1]), 64)),
"Gas": BLS12_G1MUL_GAS,
"NoBenchmark": False
},
{
"Input": int_to_hex(int(P1[0]), 64) + (int_to_hex(int(P1[1]), 64)) + int_to_hex(int(1), 32),
"Name": "bls_g1mul_(1*g1=g1)",
"Expected": int_to_hex(int(P1[0]), 64) + (int_to_hex(int(P1[1]), 64)),
"Gas": BLS12_G1MUL_GAS,
"NoBenchmark": False
},
{
"Input": int_to_hex(int(G1[0]), 64) + (int_to_hex(int(G1[1]), 64)) + int_to_hex(int(2), 32),
"Name": "bls_g1mul_(g1+g1=2*g1)",
Expand Down

0 comments on commit c1e0a32

Please sign in to comment.