Expand description
Private implementation details of Subspace consensus digests.
Structs§
- Derive
Next Solution Range Params - Params used to derive the next solution range.
- Next
Digests Verification Params - Type that holds the parameters to derive and verify next digest items.
- Subspace
Digest Items - Digest items extracted from a header into convenient form
Enums§
- Error
- Digest error
- Error
Digest Type - Various kinds of digest types used in errors
- PreDigest
- A Subspace pre-runtime digest. This contains all data required to validate a block and for the Subspace runtime module.
- PreDigest
PotInfo - Proof of time information in pre-digest
Traits§
- Compatible
Digest Item - A digest item which is usable with Subspace consensus.
Functions§
- derive_
next_ solution_ range - Derives next solution range if era duration interval has met.
- extract_
pre_ digest - Extract the Subspace pre digest from the given header. Pre-runtime digests are mandatory, the
function will return
Err
if none is found. - extract_
subspace_ digest_ items - Extract the Subspace global randomness from the given header.
- verify_
next_ digests - Derives and verifies next digest items based on their respective intervals.