aboutsummaryrefslogtreecommitdiffstats
path: root/sample
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-09-15 21:48:11 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-09-15 21:48:11 +0800
commit160b6afa742ae7daaacddbc5ffcf597d23d987ba (patch)
treed366ce9ddef508c74bdfedb63303d932ab9ea719 /sample
parentcfd56e2576f55a5e22804e3612b4004c0d6d9ef3 (diff)
downloaddexon-bls-160b6afa742ae7daaacddbc5ffcf597d23d987ba.tar
dexon-bls-160b6afa742ae7daaacddbc5ffcf597d23d987ba.tar.gz
dexon-bls-160b6afa742ae7daaacddbc5ffcf597d23d987ba.tar.bz2
dexon-bls-160b6afa742ae7daaacddbc5ffcf597d23d987ba.tar.lz
dexon-bls-160b6afa742ae7daaacddbc5ffcf597d23d987ba.tar.xz
dexon-bls-160b6afa742ae7daaacddbc5ffcf597d23d987ba.tar.zst
dexon-bls-160b6afa742ae7daaacddbc5ffcf597d23d987ba.zip
test for 256/384
Diffstat (limited to 'sample')
-rw-r--r--sample/bls_smpl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sample/bls_smpl.cpp b/sample/bls_smpl.cpp
index 5e0c70c..e812cd5 100644
--- a/sample/bls_smpl.cpp
+++ b/sample/bls_smpl.cpp
@@ -1,3 +1,4 @@
+#define MCLBN_FP_UNIT_SIZE 4
#include <bls/bls.hpp>
#include <cybozu/option.hpp>
#include <cybozu/itoa.hpp>
@@ -118,7 +119,7 @@ int recover(const bls::IdVec& ids)
int main(int argc, char *argv[])
try
{
- bls::init();
+ bls::init(); // use BN254
std::string mode;
std::string m;