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
//! # 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))]
#![no_std]

#[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;