Trait ecdsa::hazmat::VerifyPrimitive
source ·
[−]pub trait VerifyPrimitive<C> where
C: Curve + ProjectiveArithmetic,
FieldBytes<C>: From<Scalar<C>> + for<'r> From<&'r Scalar<C>>,
Scalar<C>: PrimeField<Repr = FieldBytes<C>>,
SignatureSize<C>: ArrayLength<u8>, {
fn verify_prehashed(
&self,
hashed_msg: &Scalar<C>,
signature: &Signature<C>
) -> Result<(), Error>;
}
Expand description
Verify the given prehashed message using ECDSA.
This trait is intended to be implemented on type which can access
the affine point represeting the public key via &self
, such as a
particular curve’s AffinePoint
type.
Required methods
Verify the prehashed message against the provided signature
Accepts the following arguments:
verify_key
: public key to verify the signature againsthashed_msg
: prehashed message to be verifiedsignature
: signature to be verified against the key and message