pub trait Verifier<J: Justification> {
    type Error: Display;

    // Required methods
    fn verify_justification(
        &mut self,
        justification: J::Unverified
    ) -> Result<J, Self::Error>;
    fn verify_header(
        &mut self,
        header: <<J as Justification>::Header as Header>::Unverified
    ) -> Result<J::Header, Self::Error>;
}
Expand description

A verifier of justifications and headers.

Required Associated Types§

Required Methods§

source

fn verify_justification( &mut self, justification: J::Unverified ) -> Result<J, Self::Error>

Verifies the raw justification and returns a full justification if successful, otherwise an error.

source

fn verify_header( &mut self, header: <<J as Justification>::Header as Header>::Unverified ) -> Result<J::Header, Self::Error>

Implementors§