Trait sp_runtime::traits::Verify

source ·
pub trait Verify {
    type Signer: IdentifyAccount;

    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.

Implementations on Foreign Types§

source§

impl Verify for Signature

§

type Signer = Public

source§

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

source§

impl Verify for Signature

§

type Signer = Public

source§

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

Implementors§