referrerpolicy=no-referrer-when-downgrade
pub trait BeefySignerAuthority<MsgHash: Hash>: AppPair {
    // Required method
    fn sign_with_hasher(&self, message: &[u8]) -> <Self as AppCrypto>::Signature;
}
Expand description

Trait representing BEEFY specific generation and signing behavior of authority id

Accepts custom hashing fn for the message and custom convertor fn for the signer.

Required Methods§

source

fn sign_with_hasher(&self, message: &[u8]) -> <Self as AppCrypto>::Signature

Generate and return signature for message using custom hashing MsgHash

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<MsgHash> BeefySignerAuthority<MsgHash> for <AuthorityId as AppCrypto>::Pair
where MsgHash: Hash, <MsgHash as Hash>::Output: Into<[u8; 32]>,

source§

impl<MsgHash> BeefySignerAuthority<MsgHash> for <AuthorityId as AppCrypto>::Pair
where MsgHash: Hash, <MsgHash as Hash>::Output: Into<[u8; 32]>,