Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: moves the BLS precompile to berlin #56

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore: moves bls precompile to active berlin fork
  • Loading branch information
ckartik committed Dec 11, 2024
commit e06482f7d6daf588f06fcbb67df4208906898a5a
6 changes: 3 additions & 3 deletions core/vm/contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ var PrecompiledContractsBerlin = map[common.Address]PrecompiledContract{
common.BytesToAddress([]byte{7}): &bn256ScalarMulIstanbul{},
common.BytesToAddress([]byte{8}): &bn256PairingIstanbul{},
common.BytesToAddress([]byte{9}): &blake2F{},

// primev pre-compiles start at 0xf addresses
common.BytesToAddress([]byte{0xf0}): &bls12381SignatureVerification{},
}

// PrecompiledContractsCancun contains the default set of pre-compiled Ethereum
Expand All @@ -106,9 +109,6 @@ var PrecompiledContractsCancun = map[common.Address]PrecompiledContract{
common.BytesToAddress([]byte{8}): &bn256PairingIstanbul{},
common.BytesToAddress([]byte{9}): &blake2F{},
common.BytesToAddress([]byte{0x0a}): &kzgPointEvaluation{},

// primev pre-compiles start at 0xf addresses
common.BytesToAddress([]byte{0xf0}): &bls12381SignatureVerification{},
}

// PrecompiledContractsBLS contains the set of pre-compiled Ethereum
Expand Down
Loading