Update README.md

This commit is contained in:
Sacha Saint-Leger 2020-07-27 18:14:17 +02:00 committed by GitHub
parent 74c8e3835c
commit ddf4ff1e5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -250,7 +250,7 @@ cat circuit.r1cs.json
We export `r1cs` to `json` format to make it human readable. We export `r1cs` to `json` format to make it human readable.
### 14. Generate the reference `zkey` without phase2 contributions ### 14. Generate the reference `zkey` without phase 2 contributions
```sh ```sh
snarkjs zkey new circuit.r1cs pot12_final.ptau circuit_0000.zkey snarkjs zkey new circuit.r1cs pot12_final.ptau circuit_0000.zkey
``` ```
@ -265,7 +265,7 @@ Note that `circuit_0000.zkey` (the output of the `zkey` command above) does not
*The following steps (15-20) are similar to the equivalent phase 1 steps, except we use `zkey` instead of `powersoftau` as the main command, and we generate `zkey` rather that `ptau` files.* *The following steps (15-20) are similar to the equivalent phase 1 steps, except we use `zkey` instead of `powersoftau` as the main command, and we generate `zkey` rather that `ptau` files.*
### 15. Contribute to the phase2 ceremony ### 15. Contribute to the phase 2 ceremony
```sh ```sh
snarkjs zkey contribute circuit_0000.zkey circuit_0001.zkey --name="1st Contributor Name" -v snarkjs zkey contribute circuit_0000.zkey circuit_0001.zkey --name="1st Contributor Name" -v
``` ```
@ -275,7 +275,7 @@ The `zkey contribute` command creates a `zkey` file with a new contribution.
As in phase 1, you'll be prompted to enter some random text to provide an extra source of entropy. As in phase 1, you'll be prompted to enter some random text to provide an extra source of entropy.
### 16. Provide a second phase2 contribution ### 16. Provide a second contribution
```sh ```sh
snarkjs zkey contribute circuit_0001.zkey circuit_0002.zkey --name="Second contribution Name" -v -e="Another random entropy" snarkjs zkey contribute circuit_0001.zkey circuit_0002.zkey --name="Second contribution Name" -v -e="Another random entropy"
``` ```