referrerpolicy=no-referrer-when-downgrade
polkadot_sdk_frame::traits

Trait AppVerify

pub trait AppVerify {
    type AccountId;

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

Means of signature verification of an application key.

Required Associated Types§

type AccountId

Type of the signer.

Required Methods§

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

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§

§

impl<S, T> AppVerify for T
where S: From<T> + Verify<Signer = <<T as AppCrypto>::Public as AppPublic>::Generic>, T: Wraps<Inner = S> + AppCrypto + AppSignature + AsRef<S> + AsMut<S> + From<S>, <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>,

§

type AccountId = <T as AppCrypto>::Public