diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-06-06 05:04:06 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-06-06 05:04:06 +0800 |
commit | 194928d9e850b9296bf5edaec77d20e2ca921e21 (patch) | |
tree | 88a6d26b1764bcedbe0e401178634c0272843019 /include/bls | |
parent | b93d19879787b0e197f7ca3351a6becf549fe8fd (diff) | |
download | dexon-bls-194928d9e850b9296bf5edaec77d20e2ca921e21.tar dexon-bls-194928d9e850b9296bf5edaec77d20e2ca921e21.tar.gz dexon-bls-194928d9e850b9296bf5edaec77d20e2ca921e21.tar.bz2 dexon-bls-194928d9e850b9296bf5edaec77d20e2ca921e21.tar.lz dexon-bls-194928d9e850b9296bf5edaec77d20e2ca921e21.tar.xz dexon-bls-194928d9e850b9296bf5edaec77d20e2ca921e21.tar.zst dexon-bls-194928d9e850b9296bf5edaec77d20e2ca921e21.zip |
unify curve const
Diffstat (limited to 'include/bls')
-rw-r--r-- | include/bls/bls.h | 6 | ||||
-rw-r--r-- | include/bls/bls.hpp | 8 |
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); |