Expand description
Aura (Authority-round) consensus in substrate.
Aura works by having a list of authorities A who are expected to roughly agree on the current time. Time is divided up into discrete slots of t seconds each. For each slot s, the author of that slot is A[s % |A|].
The author is allowed to issue one block but not more during that slot, and it will be built upon the longest valid chain that has been seen.
Blocks from future steps will be either deferred or rejected depending on how far in the future they are.
NOTE: Aura itself is designed to be generic over the crypto used.
Re-exports§
pub use crate::standalone::find_pre_digest;
pub use crate::standalone::slot_duration;
Modules§
- standalone
- Standalone functions used within the implementation of Aura.
Structs§
- Aura
Verifier - A verifier for Aura blocks.
- Build
Aura Worker Params - Parameters of
build_aura_worker
. - Build
Verifier Params - Parameters of
build_verifier
. - Import
Queue Params - Parameters of
import_queue
. - Inherent
Data Provider - Provides the slot duration inherent data for
Aura
. - Slot
Duration - A slot duration defined in milliseconds.
- Slot
Proportion - A unit type wrapper to express the proportion of a slot.
- Start
Aura Params - Parameters of
start_aura
.
Enums§
- Check
ForEquivocation - Should we check for equivocation of a block author?
- Compatibility
Mode - Run
AURA
in a compatibility mode. - Consensus
Log - An consensus log item for Aura.
- Error
- Aura Errors
Constants§
- AURA_
ENGINE_ ID - The
ConsensusEngineId
of AuRa. - INHERENT_
IDENTIFIER - The Aura inherent identifier.
Traits§
- AuraApi
- API necessary for block authorship with aura.
- Compatible
Digest Item - A digest item which is usable with aura consensus.
- Sync
Oracle - An oracle for when major synchronization work is being undertaken.
Functions§
- build_
aura_ worker - Build the aura worker.
- build_
verifier - Build the
AuraVerifier
- import_
queue - Start an import queue for the Aura consensus algorithm.
- start_
aura - Start the aura worker. The returned future should be run in a futures executor.
Type Aliases§
- Aura
Inherent - The type of the Aura inherent.