Skip to content

Commit

Permalink
Update precompile.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cratiu222 authored Jan 25, 2025
1 parent a6eb949 commit 621f40f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/src/crates/primitives/precompile.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ This module implements precompiled contracts in the EVM, adding a layer of pre-s

`StandardPrecompileFn` and `CustomPrecompileFn`: These are type aliases for function pointers. Both functions take a byte slice and a `u64` (probably the available gas) as arguments and return a `PrecompileResult`. The naming suggests that the former refers to built-in precompiled contracts, while the latter may refer to custom, user-defined contracts.

`PrecompileError`: This is an enumeration (enum) which describes the different types of errors that could occur while executing a precompiled contract. The listed variants suggest these errors are related to gas consumption, `Blake2` hash function, modular exponentiation ("`Modexp`"), and `Bn128`, which is a specific elliptic curve used in cryptography.
`PrecompileError`: This is an enumeration (enum) that describes the different types of errors that could occur while executing a precompiled contract. The listed variants suggest these errors are related to gas consumption, `Blake2` hash function, modular exponentiation ("`Modexp`"), and `Bn128`, which is a specific elliptic curve used in cryptography.

0 comments on commit 621f40f

Please sign in to comment.