Trait sp_runtime::traits::Verify[][src]

pub trait Verify {
    type Signer: IdentifyAccount;
    fn verify<L: Lazy<[u8]>>(
        &self,
        msg: L,
        signer: &<Self::Signer as IdentifyAccount>::AccountId
    ) -> bool; }

Means of signature verification.

Associated Types

type Signer: IdentifyAccount[src]

Type of the signer.

Loading content...

Required methods

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

Verify a signature.

Return true if signature is valid for the value.

Loading content...

Implementations on Foreign Types

impl Verify for Signature[src]

type Signer = Public

impl Verify for Signature[src]

type Signer = Public

Loading content...

Implementors

impl Verify for MultiSignature[src]

type Signer = MultiSigner

impl Verify for AnySignature[src]

type Signer = Public

impl Verify for sp_runtime::testing::sr25519::Signature[src]

type Signer = Public

impl Verify for TestSignature[src]

type Signer = UintAuthorityId

Loading content...