diff --git a/changelog.md b/changelog.md index 8a7d3298f0..0c3567d5c4 100644 --- a/changelog.md +++ b/changelog.md @@ -16,6 +16,7 @@ * [1692](https://github.com/zeta-chain/node/pull/1692) - fix get params query for emissions module * ([1733](https://github.com/zeta-chain/node/pull/1733)) - remove the unnecessary 2x multiplier in the convertGasToZeta RPC * [1721](https://github.com/zeta-chain/node/issues/1721) - zetaclient should provide bitcoin_chain_id when querying TSS address +* [1744](https://github.com/zeta-chain/node/pull/1744) - added cmd to encrypt tss keyshare file, allowing empty tss password for backward compatibility. ### Tests diff --git a/cmd/zetaclientd/encrypt_tss.go b/cmd/zetaclientd/encrypt_tss.go index 6bab6f7bf9..60d2022901 100644 --- a/cmd/zetaclientd/encrypt_tss.go +++ b/cmd/zetaclientd/encrypt_tss.go @@ -7,9 +7,10 @@ import ( "crypto/sha256" "encoding/json" "errors" - "github.com/spf13/cobra" "io" "os" + + "github.com/spf13/cobra" ) var encTssCmd = &cobra.Command{ @@ -28,8 +29,8 @@ var tssArgs = TSSArgs{} func init() { RootCmd.AddCommand(encTssCmd) - encTssCmd.Flags().StringVar(&tssArgs.secretKey, "secret", "", "tss-encrpyt --secret p@$$w0rd") - encTssCmd.Flags().StringVar(&tssArgs.filePath, "filepath", "", "tss-encrpyt --filepath ./file.json") + encTssCmd.Flags().StringVar(&tssArgs.secretKey, "secret", "", "tss-encrypt --secret p@$$w0rd") + encTssCmd.Flags().StringVar(&tssArgs.filePath, "filepath", "", "tss-encrypt --filepath ./file.json") } func EncryptTSSFile(_ *cobra.Command, _ []string) error {