Trait sp_beefy::BeefyVerify
source · pub trait BeefyVerify<MsgHash: Hash> {
type Signer: BeefyAuthorityId;
// Required method
fn verify(&self, msg: &[u8], signer: &Self::Signer) -> bool;
}
Expand description
Means of verification for a BEEFY authority signature.
Accepts custom hashing fn for the message and custom convertor fn for the signer.
Required Associated Types§
sourcetype Signer: BeefyAuthorityId
type Signer: BeefyAuthorityId
Type of the signer.