Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it easier to verify the Sapling parameters #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
171 changes: 167 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ name = "verify_transform"
name = "split_params"

[dependencies]
dirs = { version = "1", optional = true }
phase2 = "0.2.1"
pairing = "0.14"
rand = "0.4"
Expand All @@ -44,6 +45,6 @@ version = "0.1"
optional = true

[features]
verification = ["sapling-crypto"]
verification = ["dirs", "sapling-crypto"]
u128-support = ["pairing/u128-support"]
beacon = ["byteorder", "hex-literal"]
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,25 @@

This code can be used to participate and verify the Sapling network upgrade MPC.

## What do I do?
## How do I verify the Sapling parameters?

1. Download these three files from the [Powers of Tau ceremony](https://lists.zfnd.org/pipermail/zapps-wg/2018/000362.html) and place them in your current directory:
* `phase1radix2m13`
* `phase1radix2m17`
* `phase1radix2m21`

2. Ensure you have downloaded the Sapling parameters. If you have Zcash installed on Debian or Ubuntu, you can run `zcash-fetch-params` to obtain them; otherwise, download the Zcash source code, and then run `./zcutil/fetch-params.sh` to obtain them.

3. Run the following command:
```sh
cargo run --release --bin verify --features="verification"
```

## How do I participate?

The Sapling ceremony is complete!

### How did participation work?

Contact **[email protected]** to schedule a time to participate. You'll need the latest (stable) [Rust compiler](https://www.rust-lang.org/) to participate using this code.

Expand Down
Loading