Crate sp_consensus_subspace
source ·Expand description
Primitives for Subspace consensus.
Modules§
- Consensus-related runtime interface
- Private implementation details of Subspace consensus digests.
- Inherents for Subspace consensus
- Common traits and types that are useful for describing offences for usage in environments that use subspace consensus.
Structs§
- A KZG extension.
- A Poof of space extension.
- A Poof of time extension.
- Next slot input for proof of time evaluation
- Change of parameters to apply to PoT chain
- Signed farmer vote.
- Subspace solution ranges used for challenges.
- Wrapped proof of time output for the purposes of runtime interface.
- Wrapped solution for the purposes of runtime interface.
- Wrapped solution verification parameters for the purposes of runtime interface.
Enums§
- Subspace blockchain constants.
- Proof of time parameters
- Subspace justification
- Farmer vote.
Traits§
- API necessary for block authorship with Subspace.
Functions§
- Verifies the equivocation proof by making sure that: both headers have different hashes, are targeting the same slot, and have valid signatures by the same authority.
Type Aliases§
- An equivocation proof for multiple block authorships on the same slot (i.e. double vote).
- A Subspace farmer identifier. Necessarily equivalent to the schnorrkel public key used in the main Subspace module. If that ever changes, then this must, too.
- A Subspace farmer signature.