Function coins_bip32::ecdsa::hazmat::verify_prehashed

source ยท
pub fn verify_prehashed<C>(
    q: &<C as CurveArithmetic>::ProjectivePoint,
    z: &GenericArray<u8, <C as Curve>::FieldBytesSize>,
    sig: &Signature<C>,
) -> Result<(), Error>
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.