dcrypt_algorithms/ec/bls12_381/
mod.rs1#[cfg(feature = "alloc")]
7extern crate alloc;
8
9mod field;
11mod g1;
12mod g2;
13mod pairings;
14mod scalar;
15
16#[cfg(test)]
17mod tests;
18
19use scalar::Scalar;
21
22pub use g1::{G1Affine, G1Projective};
24pub use g2::{G2Affine, G2Projective};
25pub use pairings::{pairing, Bls12, Gt, MillerLoopResult};
26pub use self::scalar::Scalar as Bls12_381Scalar;
27#[cfg(feature = "alloc")]
30pub use pairings::{multi_miller_loop, G2Prepared};
31
32const BLS_X: u64 = 0xd201_0000_0001_0000;
35const BLS_X_IS_NEGATIVE: bool = true;