The precompile
crate contains the implementation of the Ethereum precompile opcodes in the evm
. Precompiles are a shortcut to execute a function implemented by the EVM itself, rather than an actual contract. Precompiled contracts are essentially predefined smart contracts on Ethereum, residing at hardcoded addresses and used for computationally heavy operations that are cheaper when implemented this way.
There are 6 precompiles implemented in REVM, and they are:
blake2
bn128
curveidentity
secp256k1
modexp
sha256
and ripemd160
hash functions