mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-16 17:03:46 +00:00
fix: added precompiles to all eth releases
This commit is contained in:
parent
b1020ccd07
commit
23d48a5e52
1 changed files with 6 additions and 0 deletions
|
|
@ -117,6 +117,9 @@ var PrecompiledContractsCancun = PrecompiledContracts{
|
||||||
common.BytesToAddress([]byte{0x8}): &bn256PairingIstanbul{},
|
common.BytesToAddress([]byte{0x8}): &bn256PairingIstanbul{},
|
||||||
common.BytesToAddress([]byte{0x9}): &blake2F{},
|
common.BytesToAddress([]byte{0x9}): &blake2F{},
|
||||||
common.BytesToAddress([]byte{0xa}): &kzgPointEvaluation{},
|
common.BytesToAddress([]byte{0xa}): &kzgPointEvaluation{},
|
||||||
|
|
||||||
|
// primev pre-compiles start at 0xf addresses
|
||||||
|
common.BytesToAddress([]byte{0xf0}): &bls12381SignatureVerification{},
|
||||||
}
|
}
|
||||||
|
|
||||||
// PrecompiledContractsPrague contains the set of pre-compiled Ethereum
|
// PrecompiledContractsPrague contains the set of pre-compiled Ethereum
|
||||||
|
|
@ -141,6 +144,9 @@ var PrecompiledContractsPrague = PrecompiledContracts{
|
||||||
common.BytesToAddress([]byte{0x11}): &bls12381Pairing{},
|
common.BytesToAddress([]byte{0x11}): &bls12381Pairing{},
|
||||||
common.BytesToAddress([]byte{0x12}): &bls12381MapG1{},
|
common.BytesToAddress([]byte{0x12}): &bls12381MapG1{},
|
||||||
common.BytesToAddress([]byte{0x13}): &bls12381MapG2{},
|
common.BytesToAddress([]byte{0x13}): &bls12381MapG2{},
|
||||||
|
|
||||||
|
// primev pre-compiles start at 0xf addresses
|
||||||
|
common.BytesToAddress([]byte{0xf0}): &bls12381SignatureVerification{},
|
||||||
}
|
}
|
||||||
|
|
||||||
var PrecompiledContractsBLS = PrecompiledContractsPrague
|
var PrecompiledContractsBLS = PrecompiledContractsPrague
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue