|
| 1 | +# User Guide |
| 2 | + |
| 3 | +## Play in localhost |
| 4 | + |
| 5 | +Please note, "--password" option should only be used in testing. |
| 6 | +Without this option, the cli would ask interactive input and confirm |
| 7 | + |
| 8 | +0. download tss executable binary |
| 9 | +``` |
| 10 | + wget https://raw.githubusercontent.com/binance-chain/node-binary/master/cli/testnet/0.6.1-TSS/{platform}/tss |
| 11 | +``` |
| 12 | + |
| 13 | +1. init 3 parties |
| 14 | +``` |
| 15 | +./tss init --home ~/.test1 --vault_name "default" --moniker "test1" --password "123456789" |
| 16 | +./tss init --home ~/.test2 --vault_name "default" --moniker "test2" --password "123456789" |
| 17 | +./tss init --home ~/.test3 --vault_name "default" --moniker "test3" --password "123456789" |
| 18 | +``` |
| 19 | + |
| 20 | +2. generate channel id |
| 21 | +replace value of "--channel_id" for following commands with generated one |
| 22 | +``` |
| 23 | +./tss channel --channel_expire 30 |
| 24 | +``` |
| 25 | + |
| 26 | +3. keygen |
| 27 | +``` |
| 28 | +./tss keygen --home ~/.test1 --vault_name "default" --parties 3 --threshold 1 --password "123456789" --channel_password "123456789" --channel_id "2855D42A535" |
| 29 | +./tss keygen --home ~/.test2 --vault_name "default" --parties 3 --threshold 1 --password "123456789" --channel_password "123456789" --channel_id "2855D42A535" |
| 30 | +./tss keygen --home ~/.test3 --vault_name "default" --parties 3 --threshold 1 --password "123456789" --channel_password "123456789" --channel_id "2855D42A535" |
| 31 | +``` |
| 32 | + |
| 33 | +4. sign |
| 34 | +``` |
| 35 | +./tss sign --home ~/.test1 --vault_name "default" --password "123456789" --channel_password "123456789" --channel_id "2855D42A535" |
| 36 | +./tss sign --home ~/.test2 --vault_name "default" --password "123456789" --channel_password "123456789" --channel_id "2855D42A535" |
| 37 | +``` |
| 38 | + |
| 39 | +5. regroup - replace existing 3 parties with 3 brand new parties |
| 40 | +``` |
| 41 | +# start 2 old parties (answer Y for isOld and IsNew interactive questions) |
| 42 | +./tss regroup --home ~/.test1 --vault_name "default" --password "123456789" --new_parties 3 --new_threshold 1 --channel_password "123456789" --channel_id "1565D44EBE1" |
| 43 | +./tss regroup --home ~/.test2 --vault_name "default" --password "123456789" --new_parties 3 --new_threshold 1 --channel_password "123456789" --channel_id "1565D44EBE1" |
| 44 | +# start the new parties (answer n for isIold and Y for IsNew interactive questions) |
| 45 | +./tss regroup --home ~/.test3 --vault_name "default" --password "123456789" --new_parties 3 --new_threshold 1 --channel_password "123456789" --channel_id "1565D44EBE1" |
| 46 | +``` |
0 commit comments