mirror of
https://github.com/tornadocash/phase2-wasm.git
synced 2024-11-21 17:36:53 +01:00
c51d76cdd6
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.3 to 0.1.4. - [Release notes](https://github.com/faye/websocket-extensions-node/releases) - [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md) - [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4) Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
js | ||
phase2-bn254@23338795bf | ||
static | ||
.gitignore | ||
.gitmodules | ||
package-lock.json | ||
package.json | ||
README.md | ||
webpack.config.js |
phase2-wasm
This demo generates contributions for phase 2 of trusted setup MPC in a browser using WebAssembly
How to install
git clone --recursive https://github.com/tornadocash/phase2-wasm
npm install
How to run in debug mode
# Builds the project and opens it in a new browser tab. Auto-reloads when the project changes.
npm start
How to build in release mode
# Builds the project and places it into the `dist` folder.
npm run build
Project structure
webpack.config.js
config that is used to build .wasm and other project filesphase2-bn254/phase2
trusted setup crate, we build .wasm module from itjs/index.js
main frontend script that calls .wasm to generate the contributionstatic/index.html
empty index file that just includes .jsstatic/params.bin
example previous contribution
This example uses static previous contribution file and outputs new contribution to console. On prod this should be handled by the server.