Trait sp_runtime::traits::AppVerify[][src]

pub trait AppVerify {
    type AccountId;
    fn verify<L: Lazy<[u8]>>(&self, msg: L, signer: &Self::AccountId) -> bool;
}

Means of signature verification of an application key.

Associated Types

type AccountId[src]

Type of the signer.

Loading content...

Required methods

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

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

Loading content...

Implementors

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 T where
    <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>, 
[src]

type AccountId = <T as AppKey>::Public

Loading content...