Skip to main content

Module interface

Module interface 

Expand description

Interface for the precompiles. It contains the precompile result type, the precompile output type, and the precompile error type.

Structs§

DefaultCrypto
Default implementation of the Crypto trait using the existing crypto libraries.
EthPrecompileOutput
Simple precompile execution output used by individual Ethereum precompile functions.
PrecompileOutput
Rich precompile execution output with gas accounting and status support.

Enums§

PrecompileError
Fatal precompile error type.
PrecompileHalt
Non-fatal halt reasons for precompiles.
PrecompileStatus
Status of a precompile execution.

Traits§

Crypto
Crypto operations trait for precompiles.

Functions§

call_eth_precompile
Calls a PrecompileEthFn and wraps the result into a PrecompileOutput.
crypto
Get the installed crypto provider, or the default if none is installed.
install_crypto
Install a custom crypto provider globally.

Type Aliases§

EthPrecompileResult
A precompile operation result type for individual Ethereum precompile functions.
PrecompileEthFn
Eth precompile function type. Takes input and gas limit, returns an Eth precompile result.
PrecompileFn
Precompile function type. Takes input, gas limit and reservoir, returns a PrecompileResult.
PrecompileResult
A precompile operation result type for the precompile provider.