pub fn check_equivocation<C, H, P>(
    backend: &C,
    slot_now: Slot,
    slot: Slot,
    header: &H,
    signer: &P
) -> Result<Option<EquivocationProof<H, P>>, Error>where
    H: Header,
    C: AuxStore,
    P: Clone + Encode + Decode + PartialEq<P>,
Expand description

Checks if the header is an equivocation and returns the proof in that case.

Note: it detects equivocations only when slot_now - slot <= MAX_SLOT_CAPACITY.