generic_ec_curves/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//! # Elliptic curves
//!
//! This crate contains elliptic curves supported out-of-box by [`generic-ec` crate].
//! Refer to its documentation to learn more.
//!
//! [`generic-ec` crate]: https://docs.rs/generic-ec

#![cfg_attr(not(test), deny(clippy::unwrap_used, clippy::expect_used))]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
#![forbid(missing_docs)]
#![no_std]

#[cfg(docsrs)]
pub mod __docs;

#[cfg(any(feature = "ed25519", feature = "rust-crypto"))]
mod utils;

#[cfg(feature = "ed25519")]
pub mod ed25519;
#[cfg(feature = "rust-crypto")]
pub mod rust_crypto;

#[cfg(feature = "secp256k1")]
pub use rust_crypto::Secp256k1;

#[cfg(feature = "secp256r1")]
pub use rust_crypto::Secp256r1;

#[cfg(feature = "stark")]
pub use rust_crypto::Stark;

#[cfg(feature = "ed25519")]
pub use ed25519::Ed25519;