Precompiles

Some EVM cryptographic precompiles (notably RSA / modExp) aren't currently available. However other cryptographic primitives like ecrecover, keccak256, sha256, ecadd and ecmul are supported as precompiles. No actions are required from your side as all the calls to the precompiles are done by the compilers under the hood.

It's important to be aware that the gas costs and behaviors of these precompiles when invoked via delegatecall may differ from those on Ethereum.

Available precompiles

AddressNameDescription
0x01ecRecoverRecovers the public key from an ECDSA signature.
0x02SHA2-256Computes the SHA-256 hash of the input.
0x06ecAddPoint addition (ADD) on the elliptic curve 'alt_bn128' .
0x07ecMulScalar multiplication (MUL) on the elliptic curve 'alt_bn128'.
0x08ecParingBilinear function on groups on the elliptic curve 'alt_bn128' .
0x100p256VerifyPerforms signature verifications in the secp256r1 elliptic curve (RIP7212)

Made with ❤️ by the ZKsync Community