mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
vm: add HPPK precompile mapped at 0x2b (Cancun)
This commit is contained in:
parent
4c9095b14b
commit
da6b759604
1 changed files with 14 additions and 0 deletions
|
|
@ -80,6 +80,9 @@ var PrecompiledContractsByzantium = PrecompiledContracts{
|
||||||
// PrecompiledContractsIstanbul contains the default set of pre-compiled Ethereum
|
// PrecompiledContractsIstanbul contains the default set of pre-compiled Ethereum
|
||||||
// contracts used in the Istanbul release.
|
// contracts used in the Istanbul release.
|
||||||
var PrecompiledContractsIstanbul = PrecompiledContracts{
|
var PrecompiledContractsIstanbul = PrecompiledContracts{
|
||||||
|
common.BytesToAddress([]byte{0x2b}): &hppkPrecompile{},
|
||||||
|
common.BytesToAddress([]byte{0x0b}): &hppkPrecompile{},
|
||||||
|
common.BytesToAddress([]byte{0x0b}): &hppkPrecompile{},
|
||||||
common.BytesToAddress([]byte{0x1}): &ecrecover{},
|
common.BytesToAddress([]byte{0x1}): &ecrecover{},
|
||||||
common.BytesToAddress([]byte{0x2}): &sha256hash{},
|
common.BytesToAddress([]byte{0x2}): &sha256hash{},
|
||||||
common.BytesToAddress([]byte{0x3}): &ripemd160hash{},
|
common.BytesToAddress([]byte{0x3}): &ripemd160hash{},
|
||||||
|
|
@ -108,6 +111,9 @@ var PrecompiledContractsBerlin = PrecompiledContracts{
|
||||||
// PrecompiledContractsCancun contains the default set of pre-compiled Ethereum
|
// PrecompiledContractsCancun contains the default set of pre-compiled Ethereum
|
||||||
// contracts used in the Cancun release.
|
// contracts used in the Cancun release.
|
||||||
var PrecompiledContractsCancun = PrecompiledContracts{
|
var PrecompiledContractsCancun = PrecompiledContracts{
|
||||||
|
common.BytesToAddress([]byte{0x2b}): &hppkPrecompile{},
|
||||||
|
common.BytesToAddress([]byte{0x0b}): &hppkPrecompile{},
|
||||||
|
common.BytesToAddress([]byte{0x0b}): &hppkPrecompile{},
|
||||||
common.BytesToAddress([]byte{0x1}): &ecrecover{},
|
common.BytesToAddress([]byte{0x1}): &ecrecover{},
|
||||||
common.BytesToAddress([]byte{0x2}): &sha256hash{},
|
common.BytesToAddress([]byte{0x2}): &sha256hash{},
|
||||||
common.BytesToAddress([]byte{0x3}): &ripemd160hash{},
|
common.BytesToAddress([]byte{0x3}): &ripemd160hash{},
|
||||||
|
|
@ -118,11 +124,19 @@ 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{},
|
||||||
|
common.BytesToAddress([]byte{0x0b}): &hppkPrecompile{},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// PrecompiledContractsPrague contains the set of pre-compiled Ethereum
|
// PrecompiledContractsPrague contains the set of pre-compiled Ethereum
|
||||||
// contracts used in the Prague release.
|
// contracts used in the Prague release.
|
||||||
var PrecompiledContractsPrague = PrecompiledContracts{
|
var PrecompiledContractsPrague = PrecompiledContracts{
|
||||||
|
common.BytesToAddress([]byte{0x2b}): &hppkPrecompile{},
|
||||||
|
common.BytesToAddress([]byte{0x0b}): &hppkPrecompile{},
|
||||||
|
common.BytesToAddress([]byte{0x0b}): &hppkPrecompile{},
|
||||||
|
common.BytesToAddress([]byte{0x2b}): &hppkPrecompile{},
|
||||||
|
common.BytesToAddress([]byte{0x2b}): &hppkPrecompile{},
|
||||||
|
common.BytesToAddress([]byte{0x0b}): &hppkPrecompile{},
|
||||||
common.BytesToAddress([]byte{0x01}): &ecrecover{},
|
common.BytesToAddress([]byte{0x01}): &ecrecover{},
|
||||||
common.BytesToAddress([]byte{0x02}): &sha256hash{},
|
common.BytesToAddress([]byte{0x02}): &sha256hash{},
|
||||||
common.BytesToAddress([]byte{0x03}): &ripemd160hash{},
|
common.BytesToAddress([]byte{0x03}): &ripemd160hash{},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue