Skip to main content

verify_prehashed

Function verify_prehashed 

Source
pub fn verify_prehashed<C>(
    q: &ProjectivePoint<C>,
    z: &[u8],
    signature: &Signature<C>,
) -> Result<()>
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 verify. MUST BE OUTPUT OF A CRYPTOGRAPHICALLY SECURE DIGEST ALGORITHM!
  • signature: purported signature to verify against the key and message.

ยงErrors

Returns Error if the signature failed to verify.