[−][src]Crate ecdsa
Elliptic Curve Digital Signature Algorithm (ECDSA) as specified in FIPS 186-4 (Digital Signature Standard)
About
This crate provides generic ECDSA support which can be used in the following ways:
- Generic implementation of ECDSA usable with the following crates:
- Other crates which provide their own complete implementations of ECDSA can
also leverage the types from this crate to export ECDSA functionality in a
generic, interoperable way by leveraging the
Signaturetype with thesignature::Signerandsignature::Verifiertraits.
Re-exports
pub use elliptic_curve; |
pub use elliptic_curve::generic_array; |
pub use signature; |
pub use signer::Signer; |
pub use verifier::Verifier; |
Modules
| asn1 | Support for ECDSA signatures encoded as ASN.1 DER. |
| dev | feature="dev"Development-related functionality |
| hazmat | feature="hazmat"Low-level ECDSA primitives. |
| signer | feature="signer"ECDSA signer. Generic over elliptic curves. |
| verifier | feature="verifier"ECDSA verifier. Generic over elliptic curves. |
Macros
| new_signing_test | feature="dev"Define ECDSA signing test |
| new_verification_test | feature="dev"Define ECDSA verification test |
Structs
| Error | Signature errors. |
| SecretKey | Elliptic curve secret keys. |
| Signature | ECDSA signatures (fixed-size). |
Enums
| PublicKey | Public keys for Weierstrass curves |
Traits
| Curve | Marker trait for elliptic curves in short Weierstrass form |
| NormalizeLow | Normalize a scalar (i.e. ECDSA S) to the lower half the field, as described in BIP 0062: Dealing with Malleability. |
Type Definitions
| SignatureBytes | Fixed-size byte array containing an ECDSA signature |
| SignatureSize | Size of a fixed sized signature for the given elliptic curve. |