Skip to content

Commit

Permalink
fix(forks): Remove BLS multiplication precompiles from Prague
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz committed Dec 20, 2024
1 parent 0359527 commit 3ebe68f
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/ethereum_test_forks/forks/forks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1133,16 +1133,14 @@ def precompiles(cls, block_number: int = 0, timestamp: int = 0) -> List[Address]
At Prague, pre-compile for BLS operations are added:
G1ADD = 0x0B
G1MUL = 0x0C
G1MSM = 0x0D
G2ADD = 0x0E
G2MUL = 0x0F
G2MSM = 0x10
PAIRING = 0x11
MAP_FP_TO_G1 = 0x12
MAP_FP2_TO_G2 = 0x13
"""
return list(Address(i) for i in range(0xB, 0x13 + 1)) + super(Prague, cls).precompiles(
G1MSM = 0x0C
G2ADD = 0x0D
G2MSM = 0x0E
PAIRING = 0x0F
MAP_FP_TO_G1 = 0x10
MAP_FP2_TO_G2 = 0x11
"""
return list(Address(i) for i in range(0xB, 0x11 + 1)) + super(Prague, cls).precompiles(
block_number, timestamp
)

Expand Down

0 comments on commit 3ebe68f

Please sign in to comment.