Trait gclient::ext::sp_runtime::traits::Verify

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 CryptoBytes<sp_core::::ecdsa::Signature::{constant#0}, (SignatureTag, EcdsaTag)>

§

type Signer = CryptoBytes<sp_core::::ecdsa::Public::{constant#0}, (PublicTag, EcdsaTag)>

§

impl Verify for CryptoBytes<sp_core::::ed25519::Signature::{constant#0}, (SignatureTag, Ed25519Tag)>

§

type Signer = CryptoBytes<sp_core::::ed25519::Public::{constant#0}, (PublicTag, Ed25519Tag)>

§

impl Verify for CryptoBytes<sp_core::::sr25519::Signature::{constant#0}, (SignatureTag, Sr25519Tag)>

§

type Signer = CryptoBytes<sp_core::::sr25519::Public::{constant#0}, Sr25519PublicTag>

§

impl Verify for AnySignature

§

type Signer = CryptoBytes<sp_core::::sr25519::Public::{constant#0}, Sr25519PublicTag>

§

impl Verify for TestSignature