generic_ec_curves/
lib.rs

1//! # Elliptic curves
2//!
3//! This crate contains elliptic curves supported out-of-box by [`generic-ec` crate].
4//! Refer to its documentation to learn more.
5//!
6//! [`generic-ec` crate]: https://docs.rs/generic-ec
7
8#![cfg_attr(not(test), deny(clippy::unwrap_used, clippy::expect_used))]
9#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
10#![forbid(missing_docs)]
11#![no_std]
12
13#[cfg(docsrs)]
14pub mod __docs;
15
16#[cfg(any(feature = "ed25519", feature = "rust-crypto"))]
17mod utils;
18
19#[cfg(feature = "ed25519")]
20pub mod ed25519;
21#[cfg(feature = "rust-crypto")]
22pub mod rust_crypto;
23
24#[cfg(feature = "secp256k1")]
25pub use rust_crypto::Secp256k1;
26
27#[cfg(feature = "secp256r1")]
28pub use rust_crypto::Secp256r1;
29
30#[cfg(feature = "stark")]
31pub use rust_crypto::Stark;
32
33#[cfg(feature = "ed25519")]
34pub use ed25519::Ed25519;