aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-01-20 17:02:37 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-01-20 17:02:37 +0800
commit2067c8ba916d612927da70e54134effab7fa6038 (patch)
tree54ede2f1e32a86e3b2f4a28679da840abe6659b7 /src
parent7de669d11d01a7e15957a6a73bb6f8a2f0f6cd97 (diff)
downloaddexon-bls-2067c8ba916d612927da70e54134effab7fa6038.tar
dexon-bls-2067c8ba916d612927da70e54134effab7fa6038.tar.gz
dexon-bls-2067c8ba916d612927da70e54134effab7fa6038.tar.bz2
dexon-bls-2067c8ba916d612927da70e54134effab7fa6038.tar.lz
dexon-bls-2067c8ba916d612927da70e54134effab7fa6038.tar.xz
dexon-bls-2067c8ba916d612927da70e54134effab7fa6038.tar.zst
dexon-bls-2067c8ba916d612927da70e54134effab7fa6038.zip
use wrapped header
Diffstat (limited to 'src')
-rw-r--r--src/bls.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/bls.cpp b/src/bls.cpp
index ae9871d..2afdd33 100644
--- a/src/bls.cpp
+++ b/src/bls.cpp
@@ -5,22 +5,13 @@
http://opensource.org/licenses/BSD-3-Clause
*/
#include <bls.hpp>
-#include <mcl/bn.hpp>
+#include <mcl/bn256.hpp>
#include <cybozu/crypto.hpp>
#include <cybozu/random_generator.hpp>
#include <vector>
#include <string>
-typedef mcl::FpT<mcl::FpTag, 256> Fp;
-typedef mcl::bn::BNT<Fp> BN;
-typedef BN::Fp2 Fp2;
-typedef BN::Fp6 Fp6;
-typedef BN::Fp12 Fp12;
-typedef BN::G1 G1;
-typedef BN::G2 G2;
-
-struct FrTag;
-typedef mcl::FpT<FrTag, 256> Fr;
+using namespace mcl::bn256;
typedef std::vector<Fr> FrVec;
#define PUT(x) std::cout << #x << "=" << x << std::endl;