Module consensus

Source
Expand description

Consensus-related runtime interface

Structs§

HostFunctions
Provides implementations for the extern host functions.

Functions§

is_proof_of_time_valid
Verify whether proof_of_time is valid at specified slot if built on top of parent_hash fork of the chain.
verify_solution
Verify whether solution is valid, returns solution distance that is <= solution_range/2 on success.