Trait ecdsa::hazmat::VerifyPrimitive
source · pub trait VerifyPrimitive<C>: AffineXCoordinate<C> + Copy + Sizedwhere
C: PrimeCurve + AffineArithmetic<AffinePoint = Self> + ProjectiveArithmetic,
Scalar<C>: Reduce<C::UInt>,
SignatureSize<C>: ArrayLength<u8>,{
fn verify_prehashed(&self, z: Scalar<C>, sig: &Signature<C>) -> Result<()> { ... }
}
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.