referrerpolicy=no-referrer-when-downgrade

Trait bp_beefy::BeefyAuthorityId

pub trait BeefyAuthorityId<MsgHash>: RuntimeAppPublic
where MsgHash: Hash,
{ // Required method fn verify(&self, signature: &Self::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§

fn verify(&self, signature: &Self::Signature, msg: &[u8]) -> bool

Verify a signature.

Return true if signature over msg is valid for this id.

Object Safety§

This trait is not object safe.

Implementors§

§

impl<H> BeefyAuthorityId<H> for Public
where H: Hash, <H as Hash>::Output: Into<[u8; 32]>,

§

impl<MsgHash> BeefyAuthorityId<MsgHash> for Public
where MsgHash: Hash, <MsgHash as Hash>::Output: Into<[u8; 32]>,

§

impl<MsgHash> BeefyAuthorityId<MsgHash> for Public
where MsgHash: Hash, <MsgHash as Hash>::Output: Into<[u8; 32]>,