Module bp_header_chain::justification
source · Expand description
Logic for checking GRANDPA Finality Proofs.
Adapted copy of substrate/client/finality-grandpa/src/justification.rs. If origin will ever be moved to the sp_consensus_grandpa, we should reuse that implementation.
Structs§
- Votes ancestries with useful methods.
- Structure that can extract equivocations from multiple GRANDPA justifications.
- Helper struct for finding equivocations in GRANDPA proofs.
- A GRANDPA Justification is a proof that a given header was finalized at a certain height and with a certain set of authorities.
- The context needed for validating GRANDPA finality proofs.
Enums§
- Justification verification error.
- Justification verification error.
- Justification verification error.
Functions§
- Decode justification target.
- Given GRANDPA authorities set size, return number of valid authorities votes that the justification must have to be valid.
- Verify and optimize given justification by removing unknown and duplicate votes.
- Verify that justification, that is generated by given authority set, finalizes given header.