Expand description
Verification primitives for Subspace.
Structs§
- Parameters for checking piece validity
- Parameters for solution verification
Enums§
- Errors encountered by the Subspace consensus primitives.
Functions§
- Calculate weight derived from provided solution range
- Check the reward signature validity.
- Derives next solution range based on the total era slots and slot probability
- Derive proof of time entropy from chunk and proof of time for injection purposes.
- Validate witness embedded within a piece produced by archiver
- Validate witness for record commitment hash produced by archiver
- Returns
Some(solution_distance)
if solution distance is within the solution range for provided parameters. - Verify whether solution is valid, returns solution distance that is
<= solution_range/2
on success.