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.
- Loading branch information
1 parent
00c5920
commit 39a4caf
Showing
18 changed files
with
132 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# 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. download tss executable binary | ||
``` | ||
wget https://raw.githubusercontent.com/binance-chain/node-binary/master/cli/testnet/0.6.1-TSS/{platform}/tss | ||
``` | ||
|
||
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,2 @@ | ||
bnbcli filter=lfs diff=lfs merge=lfs -text | ||
tss filter=lfs diff=lfs merge=lfs -text |
Git LFS 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,2 @@ | ||
146d281b22292c6097e9c731cbd3f6f3be8b89c8333860e3c302ef50dbaf9e90 bnbcli | ||
ba0c7a096178733fc2cd9448f4e7ab4642814987d5b1747b2e11fea30ac91510 tss |
Git LFS 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,2 @@ | ||
bnbcli filter=lfs diff=lfs merge=lfs -text | ||
tss filter=lfs diff=lfs merge=lfs -text |
Git LFS 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,2 @@ | ||
fb9dfc58d5e7ff45b1977d990e66b13ffda28649f752b5028f033d6c40c8bd8e bnbcli | ||
1e8b5c9811158cef16dcacfe1ff355cc2eb87455d7ef1e1879a636233b35a1e1 tss |
Git LFS 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,46 @@ | ||
# 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. download tss executable binary | ||
``` | ||
wget https://raw.githubusercontent.com/binance-chain/node-binary/master/cli/testnet/0.6.1-TSS/{platform}/tss | ||
``` | ||
|
||
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,2 @@ | ||
tbnbcli filter=lfs diff=lfs merge=lfs -text | ||
tss 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 @@ | ||
4cb1dc0a0ad351a5fa3f3d766d4a4361de791425d7396be48e0acb8a78fe64cb tbnbcli | ||
ba0c7a096178733fc2cd9448f4e7ab4642814987d5b1747b2e11fea30ac91510 tss |
Git LFS file not shown
Git LFS 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,2 @@ | ||
tbnbcli filter=lfs diff=lfs merge=lfs -text | ||
tss 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 @@ | ||
65a20084a4f16e6430c747d7face1e2587ca817e01170450f0c5130149c1d6d0 tbnbcli | ||
1e8b5c9811158cef16dcacfe1ff355cc2eb87455d7ef1e1879a636233b35a1e1 tss |
Git LFS file not shown
Git LFS file not shown