This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tss and new tbnbcli binaries (#106)
* add tbnbcli * add tss binary * add binary * add binary * add binary * add binary * add user guide * Update sha256checksum
- Loading branch information
1 parent
ff7942a
commit 867bc46
Showing
14 changed files
with
85 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# User Guide | ||
|
||
## Play in localhost | ||
|
||
Please note, "--password" option should only be used in testing. | ||
Without this option, the cli would ask interactive input and confirm | ||
|
||
0. build tss executable binary | ||
``` | ||
git clone https://github.com/binance-chain/tss | ||
cd tss | ||
go build | ||
``` | ||
|
||
1. init 3 parties | ||
``` | ||
./tss init --home ~/.test1 --vault_name "default" --moniker "test1" --password "123456789" | ||
./tss init --home ~/.test2 --vault_name "default" --moniker "test2" --password "123456789" | ||
./tss init --home ~/.test3 --vault_name "default" --moniker "test3" --password "123456789" | ||
``` | ||
|
||
2. generate channel id | ||
replace value of "--channel_id" for following commands with generated one | ||
``` | ||
./tss channel --channel_expire 30 | ||
``` | ||
|
||
3. keygen | ||
``` | ||
./tss keygen --home ~/.test1 --vault_name "default" --parties 3 --threshold 1 --password "123456789" --channel_password "123456789" --channel_id "2855D42A535" | ||
./tss keygen --home ~/.test2 --vault_name "default" --parties 3 --threshold 1 --password "123456789" --channel_password "123456789" --channel_id "2855D42A535" | ||
./tss keygen --home ~/.test3 --vault_name "default" --parties 3 --threshold 1 --password "123456789" --channel_password "123456789" --channel_id "2855D42A535" | ||
``` | ||
|
||
4. sign | ||
``` | ||
./tss sign --home ~/.test1 --vault_name "default" --password "123456789" --channel_password "123456789" --channel_id "2855D42A535" | ||
./tss sign --home ~/.test2 --vault_name "default" --password "123456789" --channel_password "123456789" --channel_id "2855D42A535" | ||
``` | ||
|
||
5. regroup - replace existing 3 parties with 3 brand new parties | ||
``` | ||
# start 2 old parties (answer Y for isOld and IsNew interactive questions) | ||
./tss regroup --home ~/.test1 --vault_name "default" --password "123456789" --new_parties 3 --new_threshold 1 --channel_password "123456789" --channel_id "1565D44EBE1" | ||
./tss regroup --home ~/.test2 --vault_name "default" --password "123456789" --new_parties 3 --new_threshold 1 --channel_password "123456789" --channel_id "1565D44EBE1" | ||
# start the new parties (answer n for isIold and Y for IsNew interactive questions) | ||
./tss regroup --home ~/.test3 --vault_name "default" --password "123456789" --new_parties 3 --new_threshold 1 --channel_password "123456789" --channel_id "1565D44EBE1" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tbnbcli filter=lfs diff=lfs merge=lfs -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
65faae696561b985d1a78996b81638fface0598436ee2677bf62163dead4dfef ./tbnbcli | ||
d9a3b66914dd9ec1eca6e2595644ae52f8ea06f74bef1163b3327e441bd4fb83 ./tss | ||
|
Git LFS file not shown
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tbnbcli filter=lfs diff=lfs merge=lfs -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
6fe3afe4bceaf42acb61d2ef53e4e1cc49e76b2b44a070ff4b8dfa4b5f5dc134 ./tbnbcli | ||
b23817c634a2879cd459a7c6750a97a376d5879575acf113a61e1acf2aeb76de ./tss | ||
|
Git LFS file not shown
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tbnbcli.exe filter=lfs diff=lfs merge=lfs -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
23c034de6b5ffca73476291c865193ae4011a2f4318f37484231e1966130dcc7 tbnbcli.exe | ||
dab89ed0b747ebdcb5fc42e3635ed8d0fa7fd407b1112b8ce3082d3a14e27315 tss.exe |
Git LFS file not shown
Binary file not shown.