Skip to main content

airbender_crypto/bls12_381/fields/
mod.rs

1// #[cfg(any(all(target_arch = "riscv32", feature = "bigint_ops"), test))]
2// pub mod fq;
3// #[cfg(any(all(target_arch = "riscv32", feature = "bigint_ops"), test))]
4// pub use self::fq::{init, Fq};
5
6#[cfg(any(
7    all(target_arch = "riscv32", feature = "bigint_ops"),
8    test,
9    feature = "proving"
10))]
11pub mod fq;
12#[cfg(any(
13    all(target_arch = "riscv32", feature = "bigint_ops"),
14    test,
15    feature = "proving"
16))]
17pub use self::fq::Fq;
18
19#[cfg(not(any(
20    all(target_arch = "riscv32", feature = "bigint_ops"),
21    test,
22    feature = "proving"
23)))]
24pub use ark_bls12_381::Fq;
25
26#[cfg(not(any(
27    all(target_arch = "riscv32", feature = "bigint_ops"),
28    test,
29    feature = "proving"
30)))]
31pub use ark_bls12_381::Fr;
32
33#[cfg(any(
34    all(target_arch = "riscv32", feature = "bigint_ops"),
35    test,
36    feature = "proving"
37))]
38pub mod fr;
39#[cfg(any(
40    all(target_arch = "riscv32", feature = "bigint_ops"),
41    test,
42    feature = "proving"
43))]
44pub use self::fr::Fr;
45
46pub mod fq2;
47pub use self::fq2::*;
48
49pub mod fq6;
50pub use self::fq6::*;
51
52pub mod fq12;
53pub use self::fq12::*;