Module interface

Source
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.
PrecompileOutput
Precompile execution output

Enums§

PrecompileError
Precompile error type.

Traits§

Crypto
Crypto operations trait for precompiles.

Functions§

crypto
Get the installed crypto provider, or the default if none is installed.
install_crypto
Install a custom crypto provider globally.

Type Aliases§

PrecompileFn
Precompile function type. Takes input, gas limit, and crypto implementation and returns precompile result.
PrecompileResult
A precompile operation result type