mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
core/vm: change the implementation address to 0x100
This commit is contained in:
parent
b5ad1a799b
commit
b5a6bb06d4
2 changed files with 4 additions and 4 deletions
|
|
@ -111,7 +111,7 @@ var PrecompiledContractsCancun = map[common.Address]PrecompiledContract{
|
||||||
// PrecompiledContractsP256Verify contains the precompiled Ethereum
|
// PrecompiledContractsP256Verify contains the precompiled Ethereum
|
||||||
// contract specified in EIP-7212. This is exported for testing purposes.
|
// contract specified in EIP-7212. This is exported for testing purposes.
|
||||||
var PrecompiledContractsP256Verify = map[common.Address]PrecompiledContract{
|
var PrecompiledContractsP256Verify = map[common.Address]PrecompiledContract{
|
||||||
common.BytesToAddress([]byte{0x0b}): &p256Verify{},
|
common.BytesToAddress([]byte{0x01, 0x00}): &p256Verify{},
|
||||||
}
|
}
|
||||||
|
|
||||||
// PrecompiledContractsBLS contains the set of pre-compiled Ethereum
|
// PrecompiledContractsBLS contains the set of pre-compiled Ethereum
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ var allPrecompiles = map[common.Address]PrecompiledContract{
|
||||||
common.BytesToAddress([]byte{9}): &blake2F{},
|
common.BytesToAddress([]byte{9}): &blake2F{},
|
||||||
common.BytesToAddress([]byte{0x0a}): &kzgPointEvaluation{},
|
common.BytesToAddress([]byte{0x0a}): &kzgPointEvaluation{},
|
||||||
|
|
||||||
common.BytesToAddress([]byte{0x0b}): &p256Verify{},
|
common.BytesToAddress([]byte{0x01, 0x00}): &p256Verify{},
|
||||||
|
|
||||||
common.BytesToAddress([]byte{0x0f, 0x0a}): &bls12381G1Add{},
|
common.BytesToAddress([]byte{0x0f, 0x0a}): &bls12381G1Add{},
|
||||||
common.BytesToAddress([]byte{0x0f, 0x0b}): &bls12381G1Mul{},
|
common.BytesToAddress([]byte{0x0f, 0x0b}): &bls12381G1Mul{},
|
||||||
|
|
@ -405,7 +405,7 @@ func BenchmarkPrecompiledP256Verify(bench *testing.B) {
|
||||||
Expected: "0000000000000000000000000000000000000000000000000000000000000001",
|
Expected: "0000000000000000000000000000000000000000000000000000000000000001",
|
||||||
Name: "p256Verify",
|
Name: "p256Verify",
|
||||||
}
|
}
|
||||||
benchmarkPrecompiled("0b", t, bench)
|
benchmarkPrecompiled("100", t, bench)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestPrecompiledP256Verify(t *testing.T) { testJson("p256Verify", "0b", t) }
|
func TestPrecompiledP256Verify(t *testing.T) { testJson("p256Verify", "100", t) }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue