Skip to content

Commit

Permalink
gas price for BLS MAP, MUL, ADD
Browse files Browse the repository at this point in the history
  • Loading branch information
gurukamath committed Dec 18, 2024
1 parent c24586f commit 6094009
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def bls12_g1_add(evm: Evm) -> None:
raise InvalidParameter("Invalid Input Length")

# GAS
charge_gas(evm, Uint(500))
charge_gas(evm, Uint(375))

# OPERATION
p1 = bytes_to_G1(buffer_read(data, U256(0), U256(128)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def bls12_g2_add(evm: Evm) -> None:
raise InvalidParameter("Invalid Input Length")

# GAS
charge_gas(evm, Uint(800))
charge_gas(evm, Uint(600))

# OPERATION
p1 = bytes_to_G2(buffer_read(data, U256(0), U256(256)))
Expand Down Expand Up @@ -84,7 +84,7 @@ def bls12_g2_multiply(evm: Evm) -> None:
raise InvalidParameter("Invalid Input Length")

# GAS
charge_gas(evm, Uint(45000))
charge_gas(evm, Uint(22500))

# OPERATION
p, m = decode_G2_scalar_pair(data)
Expand Down Expand Up @@ -160,7 +160,7 @@ def bls12_map_fp2_to_g2(evm: Evm) -> None:
raise InvalidParameter("Invalid Input Length")

# GAS
charge_gas(evm, Uint(75000))
charge_gas(evm, Uint(23800))

# OPERATION
field_element = bytes_to_FQ2(data, True)
Expand Down

0 comments on commit 6094009

Please sign in to comment.