pub trait BeefyAuthorityId: RuntimeAppPublic {
// Required methods
fn get_all_public_keys_from_store(
store: KeystorePtr,
) -> Vec<impl AsRef<[u8]>>;
fn try_sign_with_store(
&self,
store: KeystorePtr,
msg: &[u8],
) -> Result<Option<impl AsRef<[u8]> + Debug>, Error>;
fn verify(
&self,
signature: &<Self as RuntimeAppPublic>::Signature,
msg: &[u8],
) -> bool;
}Expand description
Trait representing BEEFY authority id, including custom signature verification.
Required Methods§
Sourcefn get_all_public_keys_from_store(store: KeystorePtr) -> Vec<impl AsRef<[u8]>>
fn get_all_public_keys_from_store(store: KeystorePtr) -> Vec<impl AsRef<[u8]>>
Get all the public keys of the current type from a provided Keystore.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.