Skip to content

Commit e60f428

Browse files
committed
reprice gas for BLS pre-compiles
1 parent 6094009 commit e60f428

File tree

4 files changed

+284
-146
lines changed

4 files changed

+284
-146
lines changed

src/ethereum/prague/vm/gas.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@
6666
GAS_INIT_CODE_WORD_COST = 2
6767
GAS_BLOBHASH_OPCODE = Uint(3)
6868
GAS_POINT_EVALUATION = Uint(50000)
69+
GAS_BLS_G1_ADD = Uint(375)
70+
GAS_BLS_G1_MUL = Uint(12000)
71+
GAS_BLS_G1_MAP = Uint(5500)
72+
GAS_BLS_G2_ADD = Uint(600)
73+
GAS_BLS_G2_MUL = Uint(22500)
74+
GAS_BLS_G2_MAP = Uint(23800)
6975

7076
TARGET_BLOB_GAS_PER_BLOCK = U64(786432)
7177
GAS_PER_BLOB = Uint(2**17)

0 commit comments

Comments
 (0)