This demo generates contributions for phase 2 of trusted setup MPC in a browser using WebAssembly
git clone --recursive https://github.com/tornadocash/phase2-wasm
npm install# Builds the project and opens it in a new browser tab. Auto-reloads when the project changes.
npm start# Builds the project and places it into the `dist` folder.
npm run buildwebpack.config.jsconfig that is used to build .wasm and other project filesphase2-bn254/phase2trusted setup crate, we build .wasm module from itjs/index.jsmain frontend script that calls .wasm to generate the contributionstatic/index.htmlempty index file that just includes .jsstatic/params.binexample previous contribution
This example uses static previous contribution file and outputs new contribution to console. On prod this should be handled by the server.