Expand description
ECDSA signing / verifying primitives (FIPS 186-5) with deterministic nonces (RFC 6979).
This module hosts the LIMBS-generic internals that implement the
per-curve ECDSA (and ECDH) operations. The user-facing API – the
Curve trait and the per-curve unit structs
(P256, P384, …)
lives in super::curves.
The Signature type + DER encoding also lives here because it is
ECDSA-specific (ECDH has no signature value).
Structs§
- Signature
- ECDSA signature
(r, s)as big-endian byte arrays.
Functions§
- compress_
pubkey - SEC1 compress: encode a public key as
0x02 || X(y even) or0x03 || X(y odd). - decompress_
pubkey - SEC1 decompress: take a
0x02/0x03 || Xencoding and return the0x04 || X || Yuncompressed form, recovering Y viafield_sqrt_p3mod4.