sp_runtime::traits

Trait AppVerify

Source
pub trait AppVerify {
    type AccountId;

    // Required method
    fn verify<L: Lazy<[u8]>>(&self, msg: L, signer: &Self::AccountId) -> bool;
}
Expand description

Means of signature verification of an application key.

Required Associated Types§

Source

type AccountId

Type of the signer.

Required Methods§

Source

fn verify<L: Lazy<[u8]>>(&self, msg: L, signer: &Self::AccountId) -> bool

Verify a signature. Return true if signature is valid for the value.

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.

Implementors§

Source§

impl<S: Verify<Signer = <<T as AppCrypto>::Public as AppPublic>::Generic> + From<T>, T: Wraps<Inner = S> + AppCrypto + AppSignature + AsRef<S> + AsMut<S> + From<S>> AppVerify for T
where <S as Verify>::Signer: IdentifyAccount<AccountId = <S as Verify>::Signer>, <<T as AppCrypto>::Public as AppPublic>::Generic: IdentifyAccount<AccountId = <<T as AppCrypto>::Public as AppPublic>::Generic>,