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

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

Means of signature verification.

Associated Types

type Signer: IdentifyAccount

Type of the signer.

Loading content...

Required methods

pub 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.

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...