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.

Implementors§

source§

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

§

type AccountId = <T as AppKey>::Public