diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-04-23 16:34:18 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-04-23 16:34:18 +0800 |
commit | 728b084e9acfd968e03ef299b97a4f844a730cbd (patch) | |
tree | 506bcd86eedf46d0d04dd2971e9b476d9f4181b7 /src/bls.cpp | |
parent | 1ec74e2ea0b4e7c715c6a4c23ae71af262cea4c4 (diff) | |
download | dexon-bls-728b084e9acfd968e03ef299b97a4f844a730cbd.tar.gz dexon-bls-728b084e9acfd968e03ef299b97a4f844a730cbd.tar.zst dexon-bls-728b084e9acfd968e03ef299b97a4f844a730cbd.zip |
add getCurveOrder/getFieldOrder
Diffstat (limited to 'src/bls.cpp')
-rw-r--r-- | src/bls.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bls.cpp b/src/bls.cpp index 312cf23..9f94723 100644 --- a/src/bls.cpp +++ b/src/bls.cpp @@ -211,6 +211,15 @@ size_t getOpUnitSize() return Fp::getUnitSize() * sizeof(mcl::fp::Unit) / sizeof(uint64_t); } +void getCurveOrder(std::string& str) +{ + Fr::getModulo(str); +} +void getFieldOrder(std::string& str) +{ + Fp::getModulo(str); +} + Id::Id(unsigned int id) { getInner().v = id; |