File tree 1 file changed +9
-0
lines changed
libff/common/default_types
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 16
16
/* *********************** Pick the elliptic curve ****************************/
17
17
18
18
#ifdef CURVE_ALT_BN128
19
+ #define LIBFF_DEFAULT_EC_PP_DEFINED
19
20
#include < libff/algebra/curves/alt_bn128/alt_bn128_pp.hpp>
20
21
namespace libff {
21
22
typedef alt_bn128_pp default_ec_pp;
22
23
} // libff
23
24
#endif
24
25
25
26
#ifdef CURVE_BN128
27
+ #define LIBFF_DEFAULT_EC_PP_DEFINED
26
28
#include < libff/algebra/curves/bn128/bn128_pp.hpp>
27
29
namespace libff {
28
30
typedef bn128_pp default_ec_pp;
29
31
} // libff
30
32
#endif
31
33
32
34
#ifdef CURVE_EDWARDS
35
+ #define LIBFF_DEFAULT_EC_PP_DEFINED
33
36
#include < libff/algebra/curves/edwards/edwards_pp.hpp>
34
37
namespace libff {
35
38
typedef edwards_pp default_ec_pp;
36
39
} // libff
37
40
#endif
38
41
39
42
#ifdef CURVE_MNT4
43
+ #define LIBFF_DEFAULT_EC_PP_DEFINED
40
44
#include < libff/algebra/curves/mnt/mnt4/mnt4_pp.hpp>
41
45
namespace libff {
42
46
typedef mnt4_pp default_ec_pp;
43
47
} // libff
44
48
#endif
45
49
46
50
#ifdef CURVE_MNT6
51
+ #define LIBFF_DEFAULT_EC_PP_DEFINED
47
52
#include < libff/algebra/curves/mnt/mnt6/mnt6_pp.hpp>
48
53
namespace libff {
49
54
typedef mnt6_pp default_ec_pp;
50
55
} // libff
51
56
#endif
52
57
58
+ #ifndef LIBFF_DEFAULT_EC_PP_DEFINED
59
+ #error You must define one of the CURVE_* symbols to pick a curve for pairings.
60
+ #endif
61
+
53
62
#endif // EC_PP_HPP_
You can’t perform that action at this time.
0 commit comments