Go to file
dependabot[bot] 25a4dd5c30
Bump eventsource from 1.0.7 to 1.1.1
Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.0.7 to 1.1.1.
- [Release notes](https://github.com/EventSource/eventsource/releases)
- [Changelog](https://github.com/EventSource/eventsource/blob/master/HISTORY.md)
- [Commits](https://github.com/EventSource/eventsource/compare/v1.0.7...v1.1.1)

---
updated-dependencies:
- dependency-name: eventsource
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-01 15:25:32 +00:00
js improve randomness 2020-04-29 18:55:54 +03:00
phase2-bn254@23338795bf initial 2020-04-23 07:47:50 +03:00
static initial 2020-04-23 07:47:50 +03:00
.gitignore initial 2020-04-23 07:47:50 +03:00
.gitmodules initial 2020-04-23 07:47:50 +03:00
README.md initial 2020-04-23 07:47:50 +03:00
package-lock.json Bump eventsource from 1.0.7 to 1.1.1 2022-06-01 15:25:32 +00:00
package.json initial 2020-04-23 07:47:50 +03:00
webpack.config.js initial 2020-04-23 07:47:50 +03:00

README.md

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 files
  • phase2-bn254/phase2 trusted setup crate, we build .wasm module from it
  • js/index.js main frontend script that calls .wasm to generate the contribution
  • static/index.html empty index file that just includes .js
  • static/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.