pub fn verify_prehashed<C>(
    q: &<C as CurveArithmetic>::ProjectivePoint,
    z: &GenericArray<u8, <C as Curve>::FieldBytesSize>,
    sig: &Signature<C>
) -> Result<(), Error>
where C: PrimeCurve + CurveArithmetic, <<C as Curve>::FieldBytesSize as Add>::Output: ArrayLength<u8>,
Available on (crate features ecdsa or sha256) and crate feature hazmat and crate feature ecdsa-core and crate feature arithmetic only.
Expand description

Verify the prehashed message against the provided ECDSA signature.

Accepts the following arguments:

  • q: public key with which to verify the signature.
  • z: message digest to be verified. MUST BE OUTPUT OF A CRYPTOGRAPHICALLY SECURE DIGEST ALGORITHM!!!
  • sig: signature to be verified against the key and message.