Trait mangata_types::Verify

source ·
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§

source

type Signer: IdentifyAccount

Type of the signer.

Required Methods§

source

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

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>(&self, msg: L, signer: &Public) -> boolwhere L: Lazy<[u8]>,

source§

impl Verify for Signature

§

type Signer = Public

source§

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

source§

impl Verify for Signature

§

type Signer = Public

source§

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

Implementors§