Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
release tss 0.1.2 (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
ackratos authored and chainwhisper committed Nov 5, 2019
1 parent 00c5920 commit 39a4caf
Show file tree
Hide file tree
Showing 18 changed files with 132 additions and 0 deletions.
46 changes: 46 additions & 0 deletions cli/prod/0.6.2-TSS-0.1.2/TSSUserGuide.md
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"
```
2 changes: 2 additions & 0 deletions cli/prod/0.6.2-TSS-0.1.2/linux/.gitattributes
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
3 changes: 3 additions & 0 deletions cli/prod/0.6.2-TSS-0.1.2/linux/bnbcli
Git LFS file not shown
2 changes: 2 additions & 0 deletions cli/prod/0.6.2-TSS-0.1.2/linux/sha256checksum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
146d281b22292c6097e9c731cbd3f6f3be8b89c8333860e3c302ef50dbaf9e90 bnbcli
ba0c7a096178733fc2cd9448f4e7ab4642814987d5b1747b2e11fea30ac91510 tss
3 changes: 3 additions & 0 deletions cli/prod/0.6.2-TSS-0.1.2/linux/tss
Git LFS file not shown
2 changes: 2 additions & 0 deletions cli/prod/0.6.2-TSS-0.1.2/mac/.gitattributes
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
3 changes: 3 additions & 0 deletions cli/prod/0.6.2-TSS-0.1.2/mac/bnbcli
Git LFS file not shown
2 changes: 2 additions & 0 deletions cli/prod/0.6.2-TSS-0.1.2/mac/sha256checksum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fb9dfc58d5e7ff45b1977d990e66b13ffda28649f752b5028f033d6c40c8bd8e bnbcli
1e8b5c9811158cef16dcacfe1ff355cc2eb87455d7ef1e1879a636233b35a1e1 tss
3 changes: 3 additions & 0 deletions cli/prod/0.6.2-TSS-0.1.2/mac/tss
Git LFS file not shown
46 changes: 46 additions & 0 deletions cli/testnet/0.6.2-TSS-0.1.2/TSSUserGuide.md
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"
```
2 changes: 2 additions & 0 deletions cli/testnet/0.6.2-TSS-0.1.2/linux/.gitattributes
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
2 changes: 2 additions & 0 deletions cli/testnet/0.6.2-TSS-0.1.2/linux/sha256checksum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
4cb1dc0a0ad351a5fa3f3d766d4a4361de791425d7396be48e0acb8a78fe64cb tbnbcli
ba0c7a096178733fc2cd9448f4e7ab4642814987d5b1747b2e11fea30ac91510 tss
3 changes: 3 additions & 0 deletions cli/testnet/0.6.2-TSS-0.1.2/linux/tbnbcli
Git LFS file not shown
3 changes: 3 additions & 0 deletions cli/testnet/0.6.2-TSS-0.1.2/linux/tss
Git LFS file not shown
2 changes: 2 additions & 0 deletions cli/testnet/0.6.2-TSS-0.1.2/mac/.gitattributes
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
2 changes: 2 additions & 0 deletions cli/testnet/0.6.2-TSS-0.1.2/mac/sha256checksum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
65a20084a4f16e6430c747d7face1e2587ca817e01170450f0c5130149c1d6d0 tbnbcli
1e8b5c9811158cef16dcacfe1ff355cc2eb87455d7ef1e1879a636233b35a1e1 tss
3 changes: 3 additions & 0 deletions cli/testnet/0.6.2-TSS-0.1.2/mac/tbnbcli
Git LFS file not shown
3 changes: 3 additions & 0 deletions cli/testnet/0.6.2-TSS-0.1.2/mac/tss
Git LFS file not shown

0 comments on commit 39a4caf

Please sign in to comment.