aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-09-11 09:14:24 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-09-11 09:14:24 +0800
commit704103938171a1e7e3190cf38172193f8749afff (patch)
tree3d0a75bedc673014abfbf0b8b93b62fcc3aec7fe
parent6be5bb91802bc6ba935561b24e52dc90b5c8855f (diff)
downloaddexon-bls-704103938171a1e7e3190cf38172193f8749afff.tar
dexon-bls-704103938171a1e7e3190cf38172193f8749afff.tar.gz
dexon-bls-704103938171a1e7e3190cf38172193f8749afff.tar.bz2
dexon-bls-704103938171a1e7e3190cf38172193f8749afff.tar.lz
dexon-bls-704103938171a1e7e3190cf38172193f8749afff.tar.xz
dexon-bls-704103938171a1e7e3190cf38172193f8749afff.tar.zst
dexon-bls-704103938171a1e7e3190cf38172193f8749afff.zip
rename bls.js to bls_c.js
-rw-r--r--Makefile2
-rw-r--r--docs/demo/bls-demo.js2
-rw-r--r--docs/demo/bls.html2
-rw-r--r--docs/demo/bls_c.js (renamed from docs/demo/bls.js)0
-rw-r--r--docs/demo/bls_c.wasm (renamed from docs/demo/bls.wasm)bin440261 -> 440261 bytes
5 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d9b9c35..d256e7b 100644
--- a/Makefile
+++ b/Makefile
@@ -95,7 +95,7 @@ $(EXPORTED_JS): ./include/bls/bls.h ../mcl/include/mcl/bn.h
EXPORTED_BLS=$(shell cat $(EXPORTED_TXT))
-docs/demo/bls.js: src/bls_c.cpp ../mcl/src/fp.cpp $(EXPORTED_TXT) $(EXPORTED_JS)
+docs/demo/bls_c.js: src/bls_c.cpp ../mcl/src/fp.cpp $(EXPORTED_TXT) $(EXPORTED_JS)
emcc -o $@ src/bls_c.cpp ../mcl/src/fp.cpp -I./ -I./include -I../cybozulib/include -I../mcl/include -s WASM=1 -s "MODULARIZE=1" -s "EXPORTED_FUNCTIONS=[$(EXPORTED_BLS)]" -O3 -DNDEBUG -DMCLBN_FP_UNIT_SIZE=6 -DMCL_MAX_BIT_SIZE=384 -DDISABLE_EXCEPTION_CATCHING=2
clean:
diff --git a/docs/demo/bls-demo.js b/docs/demo/bls-demo.js
index 09d291f..50364e7 100644
--- a/docs/demo/bls-demo.js
+++ b/docs/demo/bls-demo.js
@@ -22,7 +22,7 @@ function setupWasm(fileName, nameSpace, setupFct) {
var MCLBN_FP_UNIT_SIZE = 6
-var module = setupWasm('bls.wasm', null, function(mod, ns) {
+var module = setupWasm('bls_c.wasm', null, function(mod, ns) {
define_exported_bls(mod)
define_extra_functions(mod)
var r = blsInit(0, MCLBN_FP_UNIT_SIZE)
diff --git a/docs/demo/bls.html b/docs/demo/bls.html
index d740c25..789b39c 100644
--- a/docs/demo/bls.html
+++ b/docs/demo/bls.html
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<title>BLS signature sample</title>
-<script type='text/javascript' src="./bls.js"></script>
+<script type='text/javascript' src="./bls_c.js"></script>
<script type='text/javascript' src="./exported-bls.js"></script>
<script type='text/javascript' src="./bls-demo.js"></script>
</script>
diff --git a/docs/demo/bls.js b/docs/demo/bls_c.js
index 87259b6..87259b6 100644
--- a/docs/demo/bls.js
+++ b/docs/demo/bls_c.js
diff --git a/docs/demo/bls.wasm b/docs/demo/bls_c.wasm
index 8f235c2..8f235c2 100644
--- a/docs/demo/bls.wasm
+++ b/docs/demo/bls_c.wasm
Binary files differ