Learn how Abstract differs from Ethereum’s precompiled smart contracts.
On Ethereum, precompiled smart contracts
are contracts embedded into the EVM at predetermined addresses
that typically perform computationally expensive operations
that are not already included in EVM opcodes.Abstract has support for these EVM precompiles and more, however some
have different behavior than on Ethereum.
Precompile for computing elliptic curve point addition.
The points are represented in affine form, given by a pair of coordinates (x,y).Emulates the EVM’s ecadd precompile.
Precompile for computing elliptic curve point scalar multiplication.
The points are represented in homogeneous projective coordinates, given by the coordinates (x,y,z).Emulates the EVM’s ecmul precompile.
The contract that emulates RIP-7212’s P256VERIFY precompile.This adds a precompiled contract which is similar to ecrecover
to provide signature verifications using the “secp256r1” elliptic curve.