Function sp_beefy::check_equivocation_proof
source · pub fn check_equivocation_proof<Number, Id, MsgHash>(
report: &EquivocationProof<Number, Id, <Id as RuntimeAppPublic>::Signature>
) -> boolwhere
Id: BeefyAuthorityId<MsgHash> + PartialEq,
Number: Clone + Encode + PartialEq,
MsgHash: Hash,
Expand description
Verifies the equivocation proof by making sure that both votes target different blocks and that its signatures are valid.