This commit is contained in:
Alexey 2020-04-28 11:34:04 +03:00
parent c88dc70552
commit 0dde625894
2 changed files with 3 additions and 4 deletions

View File

@ -54,7 +54,7 @@ $ docker-compose up -d
``` ```
## In case of WASM module changes ## In case of WASM module changes
1. go to `phase2` folder in [phase2-bn254](https://github.com/tornadocash/phase2-bn254) (ceremony branch for now) and run the following command: 1. go to `phase2` folder in [phase2-bn254](https://github.com/tornadocash/phase2-bn254) and run the following command:
1. `wasm-pack build --release --target web -- --no-default-features --features wasm` 1. `wasm-pack build --release --target web -- --no-default-features --features wasm`
1. it will generate wasm modules in `pkg` folder, then you need to copy it to this project 1. it will generate wasm modules in `pkg` folder, then you need to copy it to this project
1. `cp -r pkg/* <path_to_current_project>/lib/phase2 && cp pkg/phase2_bg.wasm <path_to_current_project>/static/_nuxt/lib/phase2/` 1. `cp -r pkg/* <path_to_current_project>/lib/phase2 && cp pkg/phase2_bg.wasm <path_to_current_project>/static/_nuxt/lib/phase2/`
@ -67,7 +67,6 @@ Example: `wasm-pack build --release --target web -- --no-default-features --feat
1. Make sure your machine has at least 150 GB RAM and 200 GB SSD. 1. Make sure your machine has at least 150 GB RAM and 200 GB SSD.
1. Download the response file of the contribution. You can use `aria2c` accelerator for it. 1. Download the response file of the contribution. You can use `aria2c` accelerator for it.
1. `git clone https://github.com/tornadocash/phase2-bn254 && cd phase2-bn254` 1. `git clone https://github.com/tornadocash/phase2-bn254 && cd phase2-bn254`
1. `git checkout stable`
1. `cd powersoftau` 1. `cd powersoftau`
1. `cargo run --release --bin beacon_constrained <challenge_file> last_response 28 256 <VDF output>` 1. `cargo run --release --bin beacon_constrained <challenge_file> last_response 28 256 <VDF output>`
1. `cargo run --release --bin prepare_phase2 last_response 28 256` it will generate `radix*` files. You can abort execution after `phase1radix2m15` calculation. 1. `cargo run --release --bin prepare_phase2 last_response 28 256` it will generate `radix*` files. You can abort execution after `phase1radix2m15` calculation.

View File

@ -11,7 +11,7 @@
curl -sSf https://sh.rustup.rs | sh curl -sSf https://sh.rustup.rs | sh
# Clone the repository with ceremony code # Clone the repository with ceremony code
git clone -b ceremony https://github.com/tornadocash/phase2-bn254 git clone https://github.com/tornadocash/phase2-bn254
cd phase2-bn254/phase2 cd phase2-bn254/phase2
# Run the ceremony # Run the ceremony
@ -41,7 +41,7 @@ cargo run --release --bin tornado</code></pre>
<figure class="highlight"> <figure class="highlight">
<pre v-highlightjs><code class="bash"># Download dockerfile <pre v-highlightjs><code class="bash"># Download dockerfile
wget https://raw.githubusercontent.com/tornadocash/phase2-bn254/ceremony/Dockerfile wget https://raw.githubusercontent.com/tornadocash/phase2-bn254/master/Dockerfile
# Build docker image # Build docker image
docker build . -t ceremony docker build . -t ceremony