referrerpolicy=no-referrer-when-downgrade

Trait sp_runtime::traits::Verify

source ·
pub trait Verify {
    type Signer: IdentifyAccount;

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

Means of signature verification.

Required Associated Types§

source

type Signer: IdentifyAccount

Type of the signer.

Required Methods§

source

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

Verify a signature.

Return true if signature is valid for the value.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Verify for Signature

§

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

source§

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

source§

impl Verify for Signature

§

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

source§

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

Implementors§

source§

impl Verify for MultiSignature

source§

impl Verify for AnySignature

§

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

source§

impl Verify for TestSignature

source§

impl Verify for UintAuthorityId

source§

impl Verify for sp_runtime::testing::sr25519::Signature

§

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