Skip to content

Commit

Permalink
multiexp g1
Browse files Browse the repository at this point in the history
  • Loading branch information
asanso committed Mar 11, 2024
1 parent 4d92786 commit 425f0d8
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,42 @@ def case07_multiexp_G1():
"Gas": int((1 * BLS12_G1MUL_GAS * BLS12_MULTIEXP_DISCOUNT_TABLE[0][1]) / 1000),
"NoBenchmark": False
},
{
{
"Input": int_to_hex(int(G1[0]), 64) + (int_to_hex(int(G1[1]), 64)) + int_to_hex(int(1), 32),
"Name": "bls_g1multiexp_(1*g1=g1)",
"Expected": int_to_hex(int(G1[0]), 64) + (int_to_hex(int(G1[1]), 64)),
"Gas": int((1 * BLS12_G1MUL_GAS * BLS12_MULTIEXP_DISCOUNT_TABLE[0][1]) / 1000),
"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_g1multiexp_(1*p1=p1)",
"Expected": int_to_hex(int(P1[0]), 64) + (int_to_hex(int(P1[1]), 64)),
"Gas": int((1 * BLS12_G1MUL_GAS * BLS12_MULTIEXP_DISCOUNT_TABLE[0][1]) / 1000),
"NoBenchmark": False
},
{
"Input": int_to_hex(int(G1[0]), 64) + (int_to_hex(int(G1[1]), 64)) + int_to_hex(int(0), 32),
"Name": "bls_g1multiexp_(0*g1=inf)",
"Expected": int_to_hex(0, 64) + int_to_hex(0, 64),
"Gas": int((1 * BLS12_G1MUL_GAS * BLS12_MULTIEXP_DISCOUNT_TABLE[0][1]) / 1000),
"NoBenchmark": False
},
{
"Input": int_to_hex(int(P1[0]), 64) + (int_to_hex(int(P1[1]), 64)) + int_to_hex(int(0), 32),
"Name": "bls_g1multiexp_(0*p1=inf)",
"Expected": int_to_hex(0, 64) + int_to_hex(0, 64),
"Gas": int((1 * BLS12_G1MUL_GAS * BLS12_MULTIEXP_DISCOUNT_TABLE[0][1]) / 1000),
"NoBenchmark": False
},
{
"Input": int_to_hex(0, 64) + int_to_hex(0, 64) + int_to_hex(int(17), 32),
"Name": "bls_g1multiexp_(x*inf=inf)",
"Expected": int_to_hex(0, 64) + int_to_hex(0, 64),
"Gas": int((1 * BLS12_G1MUL_GAS * BLS12_MULTIEXP_DISCOUNT_TABLE[0][1]) / 1000),
"NoBenchmark": False
},
{
"Input": int_to_hex(int(G1[0]), 64) + (int_to_hex(int(G1[1]), 64)) + int_to_hex(int(2), 32) + int_to_hex(int(P1[0]), 64) + (int_to_hex(int(P1[1]), 64)) + int_to_hex(int(2), 32),
"Name": "bls_g1multiexp_(2g1+2p1)",
"Expected": int_to_hex(int(doubleP1G1[0]), 64) + (int_to_hex(int(doubleP1G1[1]), 64)),
Expand Down

0 comments on commit 425f0d8

Please sign in to comment.