This project was forked to work with the new blsttc library from maidsafe, which utilizes blst instead of threshold_crypto because it's faster.
- Make sure to clone the blsttc repo to your directory.
- Update your blsttc version path in
Cargo.tomlblsttc = { version = "2.0.2", path="./blsttc" }
- Make sure you have installed
clangsudo apt-get install clang
- Make sure you have installed emscripten
Run ./build.sh
$ wasm-pack build --target=web; python convert.pyThis will create bls-standalone.html which you can double click to use the tool.
Add new wasm functions to src/lib.rs.
These wasm functions can be called from javascript, usually by adding a function
to html/js/index.js under the threshold_crypto wasm calls section.
If you change the rust, you need to update the standalone html file:
$ CC=emcc wasm-pack build --target=web; python convert.py
If you only change the javascript or html or css, you can update the standalone page without rebuilding the wasm library.
$ python convert.py
After every change you will need to rebuild the standalone html file.
Once generated, bls-standalone.html (in the root of the repo) can be double clicked to open in your browser.