Skip to content

Commit 39a4caf

Browse files
ackratoschainwhisper
authored andcommitted
release tss 0.1.2 (bnb-chain#151)
1 parent 00c5920 commit 39a4caf

File tree

18 files changed

+132
-0
lines changed

18 files changed

+132
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
```
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bnbcli filter=lfs diff=lfs merge=lfs -text
2+
tss filter=lfs diff=lfs merge=lfs -text
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:146d281b22292c6097e9c731cbd3f6f3be8b89c8333860e3c302ef50dbaf9e90
3+
size 42475256
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
146d281b22292c6097e9c731cbd3f6f3be8b89c8333860e3c302ef50dbaf9e90 bnbcli
2+
ba0c7a096178733fc2cd9448f4e7ab4642814987d5b1747b2e11fea30ac91510 tss

cli/prod/0.6.2-TSS-0.1.2/linux/tss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:ba0c7a096178733fc2cd9448f4e7ab4642814987d5b1747b2e11fea30ac91510
3+
size 28331994
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bnbcli filter=lfs diff=lfs merge=lfs -text
2+
tss filter=lfs diff=lfs merge=lfs -text
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:fb9dfc58d5e7ff45b1977d990e66b13ffda28649f752b5028f033d6c40c8bd8e
3+
size 47585572
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
fb9dfc58d5e7ff45b1977d990e66b13ffda28649f752b5028f033d6c40c8bd8e bnbcli
2+
1e8b5c9811158cef16dcacfe1ff355cc2eb87455d7ef1e1879a636233b35a1e1 tss

cli/prod/0.6.2-TSS-0.1.2/mac/tss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:1e8b5c9811158cef16dcacfe1ff355cc2eb87455d7ef1e1879a636233b35a1e1
3+
size 27261660
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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

Comments
 (0)