Expand description
EVM precompiles interface. For illustration purposes only, as precompiles don’t follow the Solidity ABI codec.
Parameter names and types are taken from evm.codes.
interface Precompiles {
struct EcPairingInput { uint256 x1; uint256 y1; uint256 x2; uint256 y2; uint256 x3; uint256 y3; }
function ecrecover(bytes32 hash, uint8 v, uint256 r, uint256 s) returns (address publicAddress);
function sha256(bytes data) returns (bytes32 hash);
function ripemd(bytes data) returns (bytes20 hash);
function identity(bytes data) returns (bytes data);
function modexp(uint256 Bsize, uint256 Esize, uint256 Msize, bytes B, bytes E, bytes M) returns (bytes value);
function ecadd(uint256 x1, uint256 y1, uint256 x2, uint256 y2) returns (uint256 x, uint256 y);
function ecmul(uint256 x1, uint256 y1, uint256 s) returns (uint256 x, uint256 y);
function ecpairing(EcPairingInput[] input) returns (bool success);
function blake2f(uint32 rounds, uint64[8] h, uint64[16] m, uint64[2] t, bool f) returns (uint64[8] h);
function pointEvaluation(bytes32 versionedHash, bytes32 z, bytes32 y, bytes1[48] commitment, bytes1[48] proof) returns (bytes value);
}
Structs§
- Function with signature
blake2f(uint32,uint64[8],uint64[16],uint64[2],bool)
and selector0x746d111f
. - Container type for the return parameters of the
blake2f(uint32,uint64[8],uint64[16],uint64[2],bool)
function. - Function with signature
ecadd(uint256,uint256,uint256,uint256)
and selector0xbb8c256a
. - Container type for the return parameters of the
ecadd(uint256,uint256,uint256,uint256)
function. - Function with signature
ecmul(uint256,uint256,uint256)
and selector0x8081a1e7
. - Container type for the return parameters of the
ecmul(uint256,uint256,uint256)
function. - Function with signature
ecpairing((uint256,uint256,uint256,uint256,uint256,uint256)[])
and selector0xbe0cc2ea
. - Container type for the return parameters of the
ecpairing((uint256,uint256,uint256,uint256,uint256,uint256)[])
function. - Function with signature
ecrecover(bytes32,uint8,uint256,uint256)
and selector0xd2f97333
. - Container type for the return parameters of the
ecrecover(bytes32,uint8,uint256,uint256)
function. - Function with signature
identity(bytes)
and selector0x840f6120
. - Container type for the return parameters of the
identity(bytes)
function. - Function with signature
modexp(uint256,uint256,uint256,bytes,bytes,bytes)
and selector0x45789fb1
. - Container type for the return parameters of the
modexp(uint256,uint256,uint256,bytes,bytes,bytes)
function. - Function with signature
pointEvaluation(bytes32,bytes32,bytes32,bytes1[48],bytes1[48])
and selector0xf3b9dfa3
. - Container type for the return parameters of the
pointEvaluation(bytes32,bytes32,bytes32,bytes1[48],bytes1[48])
function. - Function with signature
ripemd(bytes)
and selector0xcc94c6b0
. - Container type for the return parameters of the
ripemd(bytes)
function. - Function with signature
sha256(bytes)
and selector0xbebc76dd
. - Container type for the return parameters of the
sha256(bytes)
function.
Enums§
- Container for all the
Precompiles
function calls.