check README.md

This commit is contained in:
jiangyuanshu 2019-08-12 11:35:11 +08:00
parent 9f8d3082d6
commit 2df6e00f2c
1 changed files with 13 additions and 19 deletions

View File

@ -1,28 +1,27 @@
# sapling-mpc
This document can be used to participate Multi-party Computation(MPC) phase 2 and verify the result.
This document is a guide to participating in Multi-party Computation(MPC) phase 2 and verifying the result.
## What should I do?
1. Send a mail to **jiangyuanshu@tron.network** to apply to participate MPC. You should introduce yourself in email.
1. Send an email to jiangyuanshu@tron.network to apply to participate in MPC. Please introduce yourself in the email.
2. Tron will send you a email to show your turn and time to participate MPC.
2. TRON will send you an email about the time for you to participate in MPC.
3. When it is your turn, tron will send your a email to notice you and give you a `params` file link which you need to download.
3. When it is your turn, TRON will send you a notification email and give you a params file link which you will need to download.
4. Download the `params` file.
5. Download and install IM tool [keybase](https://keybase.io/), if you don't have an account, create it first and add tron' account to your friends. Tron's account is `tron_brown`.
6. Download Rustup and install Rust, run the following in your terminal, then follow the on-screen instructions if you are running on macOS / Linux / another Unix-like OS:
5. Download and install IM tool [keybase](https://keybase.io/). If you don't have an account yet, create an account and add TRON' account as your friends. TRON's account is `tron_brown`.
6. Run the following code in your terminal to download Rustup and install Rust, then follow the instructions if you are running on macOS / Linux / another Unix-like OS:
```
# curl https://sh.rustup.rs -sSf | sh
```
  If you are running on windows, refer to [rust](https://www.rust-lang.org/learn/get-started) homepage for installation.
  If you are running on windows, please go to [rust](https://www.rust-lang.org/learn/get-started) homepage for installation instruction.
7. Get the source code of project sapling-mpc:
7. Obtain the source code of project sapling-mpc:
```
# git clone https://github.com/tronprotocol/sapling-mpc
```
@ -32,17 +31,15 @@ This document can be used to participate Multi-party Computation(MPC) phase 2 an
```
# cargo run --release --bin compute
```
  When it finish, you will get a `new_params` file and hash. Must remember the hash. You can find the hash and `new_params` as follows:
  When its finished, you will get a `new_params` file and a hash which you will need to memorize. You can find the hash and `new_params` as shown below:
![](https://raw.githubusercontent.com/tronprotocol/documentation-EN/master/docs_without_index/MPC/sapling-output.jpg)
  Notice: this process could take one to four hours according to your hardware, occupies 1.5 ~ 2GB of memory.
9. Send your result to Tron. Send the file `new_params` by keybase and send hash by email, you can record os version in email, such as windows 10/centos 7.
  Notice: this process could take one to four hours according to your hardware capacity and occupies 1.5 ~ 2GB of memory.
9. Send your result to TRON. Send the file `new_params` by keybase and hash by email. Feel free to state your os version in email. E.g. windows 10/centos 7.
## Dependency
We reuse the phase 2 result of zcash https://storage.googleapis.com/sapling-mpc/params as the first params of our ceremony. At the end of ceremony, we generate the random beacon by using one Bitcoin block's hash as the seed of pseudo random number generator, the block's height will not be determined until last participant completes.
We reuse the phase 2 result of zcash https://storage.googleapis.com/sapling-mpc/params as the first `params` of the process. At the end of process, we generate the random beacon by using one Bitcoin block's hash as the seed of pseudo random number generator; The block's height will not be determined until last participant completes his operation.
## License
@ -55,7 +52,4 @@ 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.
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.