Skip to content
This repository was archived by the owner on Jun 8, 2026. It is now read-only.

Latest commit

 

History

History
49 lines (32 loc) · 1.42 KB

File metadata and controls

49 lines (32 loc) · 1.42 KB

Fork notes

This project was forked to work with the new blsttc library from maidsafe, which utilizes blst instead of threshold_crypto because it's faster.

Prerequisite

  • Make sure to clone the blsttc repo to your directory.
  • Update your blsttc version path in Cargo.toml
    • blsttc = { version = "2.0.2", path="./blsttc" }
  • Make sure you have installed clang
    • sudo apt-get install clang
  • Make sure you have installed emscripten

How to build for Lit usage

Run ./build.sh

How to build the project

$ wasm-pack build --target=web; python convert.py

This will create bls-standalone.html which you can double click to use the tool.

Developers

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.