Trait tendermint::signature::Verifier [−][src]
pub trait Verifier<S> where
S: Signature, { fn verify(&self, msg: &[u8], signature: &S) -> Result<(), Error>; }
Expand description
Verify the provided message bytestring using Self
(e.g. a public key)
Required methods
Implementations on Foreign Types
impl<C> Verifier<Signature<C>> for VerifyingKey<C> where
C: Curve + ProjectiveArithmetic + DigestPrimitive,
<C as DigestPrimitive>::Digest: Digest,
<C as AffineArithmetic>::AffinePoint: VerifyPrimitive<C>,
<C as ScalarArithmetic>::Scalar: FromDigest<C>,
<<<C as Curve>::UInt as ArrayEncoding>::ByteSize as Add<<<C as Curve>::UInt as ArrayEncoding>::ByteSize>>::Output: ArrayLength<u8>,
<<C as DigestPrimitive>::Digest as Digest>::OutputSize == <<C as Curve>::UInt as ArrayEncoding>::ByteSize,
impl<C> Verifier<Signature<C>> for VerifyingKey<C> where
C: Curve + ProjectiveArithmetic + DigestPrimitive,
<C as DigestPrimitive>::Digest: Digest,
<C as AffineArithmetic>::AffinePoint: VerifyPrimitive<C>,
<C as ScalarArithmetic>::Scalar: FromDigest<C>,
<<<C as Curve>::UInt as ArrayEncoding>::ByteSize as Add<<<C as Curve>::UInt as ArrayEncoding>::ByteSize>>::Output: ArrayLength<u8>,
<<C as DigestPrimitive>::Digest as Digest>::OutputSize == <<C as Curve>::UInt as ArrayEncoding>::ByteSize,
Implementors
impl<S> Verifier<S> for tendermint::public_key::Secp256k1 where
S: PrehashSignature,
VerifyingKey: DigestVerifier<<S as PrehashSignature>::Digest, S>,