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 ) -> boolwhere L: Lazy<[u8]>,

Verify a signature.

Return true if signature is valid for the value.

Implementations on Foreign Types§

§

impl Verify for Signature

§

type Signer = Public

§

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

§

impl Verify for Signature

§

type Signer = Public

§

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

§

impl Verify for Signature

§

type Signer = Public

§

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

Implementors§

§

impl Verify for AnySignature

§

type Signer = Public

§

impl Verify for MultiSignature

§

type Signer = MultiSigner

§

impl Verify for TestSignature

§

type Signer = UintAuthorityId