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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#![allow(non_snake_case)]

pub extern crate amcl;

#[macro_use]
extern crate lazy_static;

#[cfg(feature = "bn254")]
pub use amcl::bn254 as ECCurve;

#[cfg(feature = "bls381")]
pub use amcl::bls381 as ECCurve;

#[cfg(feature = "secp256k1")]
pub use amcl::secp256k1 as ECCurve;

#[cfg(feature = "ed25519")]
pub use amcl::ed25519 as ECCurve;

pub mod constants;
pub mod types;

#[macro_use]
pub mod errors;

#[macro_use]
pub mod macros;

pub mod utils;

#[macro_use]
pub mod field_elem;
#[macro_use]
pub mod group_elem;
#[macro_use]
pub mod group_elem_g1;
pub mod commitment;

#[cfg(any(feature = "bls381", feature = "bn254"))]
pub mod types_g2;

#[cfg(any(feature = "bls381", feature = "bn254"))]
#[macro_use]
pub mod group_elem_g2;

#[cfg(any(feature = "bls381", feature = "bn254"))]
#[macro_use]
pub mod extension_field_gt;

extern crate serde;

#[macro_use]
extern crate serde_derive;

#[macro_use]
extern crate serde_json;

// TODO: Move the timing tests to benchmark