#[cfg(feature = "curve-secp256k1")]
pub use generic_ec::curves::Secp256k1;
#[cfg(feature = "curve-secp256r1")]
pub use generic_ec::curves::Secp256r1;
#[cfg(feature = "curve-stark")]
pub use generic_ec::curves::Stark;
pub use generic_ec::Curve;
#[cfg(test)]
#[allow(dead_code)]
mod check_compatibility {
use generic_ec::{coords::AlwaysHasAffineX, Curve, NonZero, Point};
fn curve_is_compatible<E: Curve>()
where
NonZero<Point<E>>: AlwaysHasAffineX<E>,
{
}
fn supported_curves_are_compatible() {
#[cfg(feature = "curve-secp256k1")]
curve_is_compatible::<super::Secp256k1>();
#[cfg(feature = "curve-secp256r1")]
curve_is_compatible::<super::Secp256r1>();
#[cfg(feature = "curve-stark")]
curve_is_compatible::<super::Stark>();
}
}