EVM Precompiled Contracts
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
IoTeX supports all EVM precompiles and adds two more:
secp256r1
, at address 0x8001
, is a cryptographic function for elliptic curve operations, and scryptHash, commonly used in password hashing algorithms.
scryptHash
, at address 0x8002
, commonly used in password hashing algorithms.