Go to file
jiangyuanshu 0e325a6df8 add step of downloading phase_1_files 2019-07-05 12:15:48 +08:00
src/bin Add the output of the randomness beacon, courtesy of Jason Davies. 2018-08-04 13:12:19 -06:00
.gitignore Initial commit 2018-04-08 17:30:38 -06:00
COPYRIGHT Initial commit 2018-04-08 17:30:38 -06:00
Cargo.lock Add implementation of random beacon for phase 2 of Sapling MPC. 2018-08-02 01:23:30 -06:00
Cargo.toml Add implementation of random beacon for phase 2 of Sapling MPC. 2018-08-02 01:23:30 -06:00
LICENSE-APACHE Initial commit 2018-04-08 17:30:38 -06:00
LICENSE-MIT Initial commit 2018-04-08 17:30:38 -06:00
README.md add step of downloading phase_1_files 2019-07-05 12:15:48 +08:00

README.md

sapling-mpc

This code can be used to participate PC phase 2 and verify the result.

Instructions

Contact jiangyuanshu@tron.network to schedule a time to participate and get an index num. You'll need the latest (stable) Rust compiler to participate using this code. When it's your turn, you'll receive a params file from us.

1.Download and install IM tool keybase. if you don't have an account, create it first. you can use tool to send file back to tron foundation. The TronFoundation's keybase account is tron_brown.

2.If you are running on macOS, Linux, or another Unix-like OS, download Rustup and install Rust, run the following in your terminal, then follow the on-screen instructions.

curl https://sh.rustup.rs -sSf | sh

If you are running on windows, refer to rust homepage for installation.

3.Get the source code of project sapling-mpc:

git clone https://github.com/tronprotocol/sapling-mpc

if git not installed, please refer to git first.

4.Download phase_1_files, uncompress it into the directory sapling-mpc. Place params file in the sapling-mpc directory. Then run:

cargo run --release --bin compute

The process could take one to four hours according to your hardware, occupies 1.5 ~ 2GB of memory, and then spits out a new_params file. The tool also prints a hash. This hash is what you and others can use to verify that your contribution actually ended up in the final parameters.

5.You are encouraged to save this file new_params and upload it back to us with keybase. After we receive this new_params file, we will check its correctness and upload it to aliyun cloud if ok, so that next participant can use it. we will also publish the file link and hash on github wiki.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.