Skip to main content

Verifier

Trait Verifier 

Source
pub trait Verifier: Send + Sync {
    // Required methods
    fn verify(&self, pk: &PublicKey, msg: &[u8], sig: &Signature) -> bool;
    fn verify_aggregate(
        &self,
        vs: &ValidatorSet,
        msg: &[u8],
        agg: &AggregateSignature,
    ) -> bool;
}

Required Methods§

Source

fn verify(&self, pk: &PublicKey, msg: &[u8], sig: &Signature) -> bool

Source

fn verify_aggregate( &self, vs: &ValidatorSet, msg: &[u8], agg: &AggregateSignature, ) -> bool

Implementors§