aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-06-06 05:16:56 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-06-06 05:16:56 +0800
commit2d350f2122971b120ddb70c498dde6c954a85caa (patch)
tree8de1b81f8d96f84cd94b47bd5784a177fbedb450
parent194928d9e850b9296bf5edaec77d20e2ca921e21 (diff)
downloaddexon-bls-2d350f2122971b120ddb70c498dde6c954a85caa.tar
dexon-bls-2d350f2122971b120ddb70c498dde6c954a85caa.tar.gz
dexon-bls-2d350f2122971b120ddb70c498dde6c954a85caa.tar.bz2
dexon-bls-2d350f2122971b120ddb70c498dde6c954a85caa.tar.lz
dexon-bls-2d350f2122971b120ddb70c498dde6c954a85caa.tar.xz
dexon-bls-2d350f2122971b120ddb70c498dde6c954a85caa.tar.zst
dexon-bls-2d350f2122971b120ddb70c498dde6c954a85caa.zip
_
-rw-r--r--src/bls.cpp1
-rw-r--r--src/bls_c.cpp12
2 files changed, 8 insertions, 5 deletions
diff --git a/src/bls.cpp b/src/bls.cpp
index d42c01c..2b481d5 100644
--- a/src/bls.cpp
+++ b/src/bls.cpp
@@ -186,7 +186,6 @@ void init(int curve, int maxUnitSize)
G1::setCompressedExpression();
G2::setCompressedExpression();
Fr::init(BN::param.r);
-// mcl::setIoMode(mcl::IoHeximal);
assert(sizeof(Id) == sizeof(impl::Id));
assert(sizeof(SecretKey) == sizeof(impl::SecretKey));
assert(sizeof(PublicKey) == sizeof(impl::PublicKey));
diff --git a/src/bls_c.cpp b/src/bls_c.cpp
index 13f3a63..d0f2802 100644
--- a/src/bls_c.cpp
+++ b/src/bls_c.cpp
@@ -1,10 +1,14 @@
-#include "../mcl/src/bn_c_impl.hpp"
-#include "bls/bls.hpp"
-#define BLS_DLL_EXPORT
-#include "bls/bls.h"
#include <iostream>
#include <sstream>
+#include <vector>
+#include <string>
+#include <iosfwd>
+#include <stdint.h>
#include <memory.h>
+#include "../mcl/src/bn_c_impl.hpp"
+#define BLS_DLL_EXPORT
+#include <bls/bls.h>
+#include <bls/bls.hpp>
size_t checkAndCopy(char *buf, size_t maxBufSize, const std::string& s)
{