Available on (crate features
ecdsa
or sha256
) and crate feature hazmat
and crate feature ecdsa-core
only.Expand description
Low-level ECDSA primitives.
⚠️ Warning: Hazmat!
YOU PROBABLY DON’T WANT TO USE THESE!
These primitives are easy-to-misuse low-level interfaces.
If you are an end user / non-expert in cryptography, do not use these! Failure to use them correctly can lead to catastrophic failures including FULL PRIVATE KEY RECOVERY!
Traits
- DigestPrimitive
digest
Bind a preferred [Digest
] algorithm to an elliptic curve type. - SignPrimitive
arithmetic
Try to sign the given prehashed message using ECDSA. - VerifyPrimitive
arithmetic
Verify the given prehashed message using ECDSA.
Functions
- Partial implementation of the
bits2int
function as defined in RFC6979 § 2.3.2 as well as SEC1 § 2.3.8. - sign_prehashed
arithmetic
Sign a prehashed message digest using the provided secret scalar and ephemeral scalar, returning an ECDSA signature. - verify_prehashed
arithmetic
Verify the prehashed message against the provided ECDSA signature.