EVM Precompiled Contracts
Precompiled contracts in the EVM are special contracts at fixed addresses, offering advanced functions with specific gas costs. Most precompiles donβt have a solidity wrapper (with ecRecover
being the sole exception), therefore youβll have to call the address directly with addressOfPrecompile.staticcall(β¦)
or use assembly.
EVM Precompiles Support in IoTeX
IoTeX supports all EVM precompiles and adds two more:
secp256r1
, at address0x8001
, is a cryptographic function for elliptic curve operations, and scryptHash, commonly used in password hashing algorithms.scryptHash
, at address0x8002
, commonly used in password hashing algorithms.
For further details, developers can explore the IoTeX code at this link to contracts.go, where they can see the specific addresses, gas costs, and functions associated with each precompile.
Last updated