#![deny(rustdoc::broken_intra_doc_links)]
#![deny(missing_debug_implementations)]
#![deny(missing_docs)]
#![deny(unsafe_code)]
#![expect(clippy::too_many_arguments, reason = "Preserve upstream arithmetic spelling.")]
#![expect(clippy::suspicious_arithmetic_impl, reason = "Preserve upstream arithmetic spelling.")]
#[cfg(feature = "bls" /* Platform: alloc selected. */)]
extern crate alloc;
#[cfg(test)]
#[cfg(feature = "bls" /* Platform: groups selected. */)]
mod tests;
#[macro_use]
mod util;
pub mod notes {
pub mod design;
pub mod serialization;
}
mod scalar;
pub use scalar::Scalar;
#[cfg(feature = "bls" /* Platform: groups selected. */)]
mod fp;
#[cfg(feature = "bls" /* Platform: groups selected. */)]
mod fp2;
#[cfg(feature = "bls" /* Platform: groups selected. */)]
mod g1;
#[cfg(feature = "bls" /* Platform: groups selected. */)]
mod g2;
#[cfg(feature = "bls" /* Platform: groups selected. */)]
pub use g1::{G1Affine, G1Projective};
#[cfg(feature = "bls" /* Platform: groups selected. */)]
pub use g2::{G2Affine, G2Projective};
#[cfg(feature = "bls" /* Platform: groups selected. */)]
mod fp12;
#[cfg(feature = "bls" /* Platform: groups selected. */)]
mod fp6;
#[cfg(feature = "bls" /* Platform: groups selected. */)]
const BLS_X: u64 = 0xd201_0000_0001_0000;
#[cfg(feature = "bls" /* Platform: groups selected. */)]
const BLS_X_IS_NEGATIVE: bool = true;
#[cfg(feature = "bls" /* Platform: pairings selected. */)]
mod pairings;
#[cfg(feature = "bls" /* Platform: pairings selected. */)]
pub use pairings::{pairing, Bls12, Gt, MillerLoopResult};
#[cfg(all(feature = "bls" /* Platform: pairings selected. */, feature = "bls" /* Platform: alloc selected. */))]
pub use pairings::{multi_miller_loop, G2Prepared};
#[cfg(feature = "bls" /* Platform: experimental selected. */)]
pub(crate) use digest::generic_array;
#[cfg(feature = "bls" /* Platform: experimental selected. */)]
pub mod hash_to_curve;