Crate enjen[−][src]
This crate defines the Engine trait and related types.
Modules
| signer | A signer used by Engines which need to sign messages. |
Enums
| ConstructedVerifier | Generated epoch verifier. |
| EpochChange | Results of a query of whether an epoch change occurred at the given block. |
| Proof | Proof generated on epoch change. |
| SystemOrCodeCallKind | Kind of SystemOrCodeCall, this is either an on-chain address, or code. |
Traits
| Engine | A consensus mechanism for the chain. Generally either proof-of-work or proof-of-stake-based. Provides hooks into each of the major parts of block import. |
| EpochVerifier | Verifier for all blocks within an epoch with self-contained state. |
| StateDependentProof | Proof dependent on state. |
Functions
| default_system_or_code_call | Default SystemOrCodeCall implementation. |
Type Definitions
| SystemCall | A system-calling closure. Enacts calls on a block’s state from the system address. |
| SystemOrCodeCall | A system-calling closure. Enacts calls on a block’s state with code either from an on-chain contract, or hard-coded VVM or WASM (if enabled on-chain) codes. |