aboutsummaryrefslogtreecommitdiffstats
path: root/include/bls
diff options
context:
space:
mode:
Diffstat (limited to 'include/bls')
-rw-r--r--include/bls/bls.h6
-rw-r--r--include/bls/bls.hpp8
2 files changed, 1 insertions, 13 deletions
diff --git a/include/bls/bls.h b/include/bls/bls.h
index 47b33cf..634a699 100644
--- a/include/bls/bls.h
+++ b/include/bls/bls.h
@@ -27,12 +27,6 @@
extern "C" {
#endif
-enum {
- blsCurveFp254BNb = 0,
- blsCurveFp382_1 = 1,
- blsCurveFp382_2 = 2
-};
-
typedef struct {
mclBnFr v;
} blsId;
diff --git a/include/bls/bls.hpp b/include/bls/bls.hpp
index 3eda465..1b30cff 100644
--- a/include/bls/bls.hpp
+++ b/include/bls/bls.hpp
@@ -18,12 +18,6 @@
namespace bls {
-enum {
- CurveFp254BNb = 0,
- CurveFp382_1 = 1,
- CurveFp382_2 = 2
-};
-
// same value with IoMode of mcl/op.hpp
enum {
IoBin = 2, // binary number
@@ -59,7 +53,7 @@ struct Id;
@param maxUnitSize [in] 4 or 6 (specify same value used in compiling for validation)
@note init() is not thread safe
*/
-void init(int curve = CurveFp254BNb, int maxUnitSize = MCLBN_FP_UNIT_SIZE);
+void init(int curve = mclBn_CurveFp254BNb, int maxUnitSize = MCLBN_FP_UNIT_SIZE);
size_t getOpUnitSize();
void getCurveOrder(std::string& str);
void getFieldOrder(std::string& str);