pub trait Verify {
    type Signer: IdentifyAccount;

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

Means of signature verification.

Required Associated Types§

type Signer: IdentifyAccount

Type of the signer.

Required Methods§

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

Verify a signature.

Return true if signature is valid for the value.

Object Safety§

This trait is not object safe.

Implementors§

§

impl Verify for MultiSignature

§

impl Verify for gclient::ext::sp_runtime::app_crypto::ecdsa::Signature

§

impl Verify for gclient::ext::sp_runtime::app_crypto::ed25519::Signature

§

impl Verify for gclient::ext::sp_runtime::app_crypto::sr25519::Signature

§

impl Verify for AnySignature

§

impl Verify for TestSignature