aboutsummaryrefslogtreecommitdiffstats
path: root/include/bls/bls.hpp
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-08-13 14:11:14 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-08-13 14:11:14 +0800
commitf25b779d48f3682a03a001f8ce0386eebd43de68 (patch)
treea95fec80bd35fcbd927ccd14659b40b3a5db7b98 /include/bls/bls.hpp
parent56dd66510ebc611f8befbd5b22cb061616756491 (diff)
downloaddexon-bls-f25b779d48f3682a03a001f8ce0386eebd43de68.tar
dexon-bls-f25b779d48f3682a03a001f8ce0386eebd43de68.tar.gz
dexon-bls-f25b779d48f3682a03a001f8ce0386eebd43de68.tar.bz2
dexon-bls-f25b779d48f3682a03a001f8ce0386eebd43de68.tar.lz
dexon-bls-f25b779d48f3682a03a001f8ce0386eebd43de68.tar.xz
dexon-bls-f25b779d48f3682a03a001f8ce0386eebd43de68.tar.zst
dexon-bls-f25b779d48f3682a03a001f8ce0386eebd43de68.zip
add getG1/FrByteSize
Diffstat (limited to 'include/bls/bls.hpp')
-rw-r--r--include/bls/bls.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/bls/bls.hpp b/include/bls/bls.hpp
index 914cedf..ca4d0ca 100644
--- a/include/bls/bls.hpp
+++ b/include/bls/bls.hpp
@@ -6,15 +6,16 @@
@license modified new BSD license
http://opensource.org/licenses/BSD-3-Clause
*/
-#include <mcl/bn.h>
#include <bls/bls.h>
#include <vector>
#include <string>
#include <iosfwd>
#include <stdint.h>
-#ifdef _MSC_VER
- #pragma comment(lib, "bls.lib")
+#ifndef BLS_NO_AUTOLINK
+ #ifdef _MSC_VER
+ #pragma comment(lib, "bls.lib")
+ #endif
#endif
namespace bls {
@@ -58,6 +59,8 @@ 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);
+int getG1ByteSize();
+int getFrByteSize();
class SecretKey;
class PublicKey;