Trait phron_finality::sync::Verifier
source · 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§
sourcefn verify_justification(
&mut self,
justification: J::Unverified
) -> Result<J, Self::Error>
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.