Trait sp_consensus_beefy::BeefyAuthorityId
source · pub trait BeefyAuthorityId<MsgHash: Hash>: RuntimeAppPublic {
// Required method
fn verify(
&self,
signature: &<Self as RuntimeAppPublic>::Signature,
msg: &[u8],
) -> bool;
}
Expand description
Trait representing BEEFY authority id, including custom signature verification.
Accepts custom hashing fn for the message and custom convertor fn for the signer.
Required Methods§
Object Safety§
This trait is not object safe.