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.
Required methods
fn verify<L: Lazy<[u8]>>(
&self,
msg: L,
signer: &<Self::Signer as IdentifyAccount>::AccountId
) -> bool[src]
&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
impl Verify for Signature[src]
impl Verify for Signature[src]impl Verify for Signature[src]
impl Verify for Signature[src]Implementors
impl Verify for MultiSignature[src]
impl Verify for MultiSignature[src]type Signer = MultiSigner
fn verify<L: Lazy<[u8]>>(&self, msg: L, signer: &AccountId32) -> bool[src]
impl Verify for AnySignature[src]
impl Verify for AnySignature[src]