From 39a4cafd8d6aa03549de3efb7bb93802cf9831a3 Mon Sep 17 00:00:00 2001 From: cong Date: Tue, 5 Nov 2019 16:25:32 +0800 Subject: [PATCH] release tss 0.1.2 (#151) --- cli/prod/0.6.2-TSS-0.1.2/TSSUserGuide.md | 46 +++++++++++++++++++ cli/prod/0.6.2-TSS-0.1.2/linux/.gitattributes | 2 + cli/prod/0.6.2-TSS-0.1.2/linux/bnbcli | 3 ++ cli/prod/0.6.2-TSS-0.1.2/linux/sha256checksum | 2 + cli/prod/0.6.2-TSS-0.1.2/linux/tss | 3 ++ cli/prod/0.6.2-TSS-0.1.2/mac/.gitattributes | 2 + cli/prod/0.6.2-TSS-0.1.2/mac/bnbcli | 3 ++ cli/prod/0.6.2-TSS-0.1.2/mac/sha256checksum | 2 + cli/prod/0.6.2-TSS-0.1.2/mac/tss | 3 ++ cli/testnet/0.6.2-TSS-0.1.2/TSSUserGuide.md | 46 +++++++++++++++++++ .../0.6.2-TSS-0.1.2/linux/.gitattributes | 2 + .../0.6.2-TSS-0.1.2/linux/sha256checksum | 2 + cli/testnet/0.6.2-TSS-0.1.2/linux/tbnbcli | 3 ++ cli/testnet/0.6.2-TSS-0.1.2/linux/tss | 3 ++ .../0.6.2-TSS-0.1.2/mac/.gitattributes | 2 + .../0.6.2-TSS-0.1.2/mac/sha256checksum | 2 + cli/testnet/0.6.2-TSS-0.1.2/mac/tbnbcli | 3 ++ cli/testnet/0.6.2-TSS-0.1.2/mac/tss | 3 ++ 18 files changed, 132 insertions(+) create mode 100644 cli/prod/0.6.2-TSS-0.1.2/TSSUserGuide.md create mode 100644 cli/prod/0.6.2-TSS-0.1.2/linux/.gitattributes create mode 100755 cli/prod/0.6.2-TSS-0.1.2/linux/bnbcli create mode 100644 cli/prod/0.6.2-TSS-0.1.2/linux/sha256checksum create mode 100755 cli/prod/0.6.2-TSS-0.1.2/linux/tss create mode 100644 cli/prod/0.6.2-TSS-0.1.2/mac/.gitattributes create mode 100755 cli/prod/0.6.2-TSS-0.1.2/mac/bnbcli create mode 100644 cli/prod/0.6.2-TSS-0.1.2/mac/sha256checksum create mode 100755 cli/prod/0.6.2-TSS-0.1.2/mac/tss create mode 100644 cli/testnet/0.6.2-TSS-0.1.2/TSSUserGuide.md create mode 100644 cli/testnet/0.6.2-TSS-0.1.2/linux/.gitattributes create mode 100644 cli/testnet/0.6.2-TSS-0.1.2/linux/sha256checksum create mode 100755 cli/testnet/0.6.2-TSS-0.1.2/linux/tbnbcli create mode 100755 cli/testnet/0.6.2-TSS-0.1.2/linux/tss create mode 100644 cli/testnet/0.6.2-TSS-0.1.2/mac/.gitattributes create mode 100644 cli/testnet/0.6.2-TSS-0.1.2/mac/sha256checksum create mode 100755 cli/testnet/0.6.2-TSS-0.1.2/mac/tbnbcli create mode 100755 cli/testnet/0.6.2-TSS-0.1.2/mac/tss diff --git a/cli/prod/0.6.2-TSS-0.1.2/TSSUserGuide.md b/cli/prod/0.6.2-TSS-0.1.2/TSSUserGuide.md new file mode 100644 index 0000000..c0404ee --- /dev/null +++ b/cli/prod/0.6.2-TSS-0.1.2/TSSUserGuide.md @@ -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" +``` \ No newline at end of file diff --git a/cli/prod/0.6.2-TSS-0.1.2/linux/.gitattributes b/cli/prod/0.6.2-TSS-0.1.2/linux/.gitattributes new file mode 100644 index 0000000..8a427f8 --- /dev/null +++ b/cli/prod/0.6.2-TSS-0.1.2/linux/.gitattributes @@ -0,0 +1,2 @@ +bnbcli filter=lfs diff=lfs merge=lfs -text +tss filter=lfs diff=lfs merge=lfs -text diff --git a/cli/prod/0.6.2-TSS-0.1.2/linux/bnbcli b/cli/prod/0.6.2-TSS-0.1.2/linux/bnbcli new file mode 100755 index 0000000..e205af4 --- /dev/null +++ b/cli/prod/0.6.2-TSS-0.1.2/linux/bnbcli @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:146d281b22292c6097e9c731cbd3f6f3be8b89c8333860e3c302ef50dbaf9e90 +size 42475256 diff --git a/cli/prod/0.6.2-TSS-0.1.2/linux/sha256checksum b/cli/prod/0.6.2-TSS-0.1.2/linux/sha256checksum new file mode 100644 index 0000000..e4bb594 --- /dev/null +++ b/cli/prod/0.6.2-TSS-0.1.2/linux/sha256checksum @@ -0,0 +1,2 @@ +146d281b22292c6097e9c731cbd3f6f3be8b89c8333860e3c302ef50dbaf9e90 bnbcli +ba0c7a096178733fc2cd9448f4e7ab4642814987d5b1747b2e11fea30ac91510 tss diff --git a/cli/prod/0.6.2-TSS-0.1.2/linux/tss b/cli/prod/0.6.2-TSS-0.1.2/linux/tss new file mode 100755 index 0000000..33011a7 --- /dev/null +++ b/cli/prod/0.6.2-TSS-0.1.2/linux/tss @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba0c7a096178733fc2cd9448f4e7ab4642814987d5b1747b2e11fea30ac91510 +size 28331994 diff --git a/cli/prod/0.6.2-TSS-0.1.2/mac/.gitattributes b/cli/prod/0.6.2-TSS-0.1.2/mac/.gitattributes new file mode 100644 index 0000000..8a427f8 --- /dev/null +++ b/cli/prod/0.6.2-TSS-0.1.2/mac/.gitattributes @@ -0,0 +1,2 @@ +bnbcli filter=lfs diff=lfs merge=lfs -text +tss filter=lfs diff=lfs merge=lfs -text diff --git a/cli/prod/0.6.2-TSS-0.1.2/mac/bnbcli b/cli/prod/0.6.2-TSS-0.1.2/mac/bnbcli new file mode 100755 index 0000000..c1dd7c1 --- /dev/null +++ b/cli/prod/0.6.2-TSS-0.1.2/mac/bnbcli @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fb9dfc58d5e7ff45b1977d990e66b13ffda28649f752b5028f033d6c40c8bd8e +size 47585572 diff --git a/cli/prod/0.6.2-TSS-0.1.2/mac/sha256checksum b/cli/prod/0.6.2-TSS-0.1.2/mac/sha256checksum new file mode 100644 index 0000000..b3f49b0 --- /dev/null +++ b/cli/prod/0.6.2-TSS-0.1.2/mac/sha256checksum @@ -0,0 +1,2 @@ +fb9dfc58d5e7ff45b1977d990e66b13ffda28649f752b5028f033d6c40c8bd8e bnbcli +1e8b5c9811158cef16dcacfe1ff355cc2eb87455d7ef1e1879a636233b35a1e1 tss diff --git a/cli/prod/0.6.2-TSS-0.1.2/mac/tss b/cli/prod/0.6.2-TSS-0.1.2/mac/tss new file mode 100755 index 0000000..b6756f6 --- /dev/null +++ b/cli/prod/0.6.2-TSS-0.1.2/mac/tss @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1e8b5c9811158cef16dcacfe1ff355cc2eb87455d7ef1e1879a636233b35a1e1 +size 27261660 diff --git a/cli/testnet/0.6.2-TSS-0.1.2/TSSUserGuide.md b/cli/testnet/0.6.2-TSS-0.1.2/TSSUserGuide.md new file mode 100644 index 0000000..c0404ee --- /dev/null +++ b/cli/testnet/0.6.2-TSS-0.1.2/TSSUserGuide.md @@ -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" +``` \ No newline at end of file diff --git a/cli/testnet/0.6.2-TSS-0.1.2/linux/.gitattributes b/cli/testnet/0.6.2-TSS-0.1.2/linux/.gitattributes new file mode 100644 index 0000000..611566d --- /dev/null +++ b/cli/testnet/0.6.2-TSS-0.1.2/linux/.gitattributes @@ -0,0 +1,2 @@ +tbnbcli filter=lfs diff=lfs merge=lfs -text +tss filter=lfs diff=lfs merge=lfs -text diff --git a/cli/testnet/0.6.2-TSS-0.1.2/linux/sha256checksum b/cli/testnet/0.6.2-TSS-0.1.2/linux/sha256checksum new file mode 100644 index 0000000..3916c9a --- /dev/null +++ b/cli/testnet/0.6.2-TSS-0.1.2/linux/sha256checksum @@ -0,0 +1,2 @@ +4cb1dc0a0ad351a5fa3f3d766d4a4361de791425d7396be48e0acb8a78fe64cb tbnbcli +ba0c7a096178733fc2cd9448f4e7ab4642814987d5b1747b2e11fea30ac91510 tss diff --git a/cli/testnet/0.6.2-TSS-0.1.2/linux/tbnbcli b/cli/testnet/0.6.2-TSS-0.1.2/linux/tbnbcli new file mode 100755 index 0000000..8611b68 --- /dev/null +++ b/cli/testnet/0.6.2-TSS-0.1.2/linux/tbnbcli @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4cb1dc0a0ad351a5fa3f3d766d4a4361de791425d7396be48e0acb8a78fe64cb +size 42475088 diff --git a/cli/testnet/0.6.2-TSS-0.1.2/linux/tss b/cli/testnet/0.6.2-TSS-0.1.2/linux/tss new file mode 100755 index 0000000..33011a7 --- /dev/null +++ b/cli/testnet/0.6.2-TSS-0.1.2/linux/tss @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba0c7a096178733fc2cd9448f4e7ab4642814987d5b1747b2e11fea30ac91510 +size 28331994 diff --git a/cli/testnet/0.6.2-TSS-0.1.2/mac/.gitattributes b/cli/testnet/0.6.2-TSS-0.1.2/mac/.gitattributes new file mode 100644 index 0000000..611566d --- /dev/null +++ b/cli/testnet/0.6.2-TSS-0.1.2/mac/.gitattributes @@ -0,0 +1,2 @@ +tbnbcli filter=lfs diff=lfs merge=lfs -text +tss filter=lfs diff=lfs merge=lfs -text diff --git a/cli/testnet/0.6.2-TSS-0.1.2/mac/sha256checksum b/cli/testnet/0.6.2-TSS-0.1.2/mac/sha256checksum new file mode 100644 index 0000000..bd3e889 --- /dev/null +++ b/cli/testnet/0.6.2-TSS-0.1.2/mac/sha256checksum @@ -0,0 +1,2 @@ +65a20084a4f16e6430c747d7face1e2587ca817e01170450f0c5130149c1d6d0 tbnbcli +1e8b5c9811158cef16dcacfe1ff355cc2eb87455d7ef1e1879a636233b35a1e1 tss diff --git a/cli/testnet/0.6.2-TSS-0.1.2/mac/tbnbcli b/cli/testnet/0.6.2-TSS-0.1.2/mac/tbnbcli new file mode 100755 index 0000000..0aa626d --- /dev/null +++ b/cli/testnet/0.6.2-TSS-0.1.2/mac/tbnbcli @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:65a20084a4f16e6430c747d7face1e2587ca817e01170450f0c5130149c1d6d0 +size 47585292 diff --git a/cli/testnet/0.6.2-TSS-0.1.2/mac/tss b/cli/testnet/0.6.2-TSS-0.1.2/mac/tss new file mode 100755 index 0000000..b6756f6 --- /dev/null +++ b/cli/testnet/0.6.2-TSS-0.1.2/mac/tss @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1e8b5c9811158cef16dcacfe1ff355cc2eb87455d7ef1e1879a636233b35a1e1 +size 27261660