From bbcecf35378fbe29d53c20fe4143b67930caea3e Mon Sep 17 00:00:00 2001 From: Solovyov1796 Date: Fri, 31 May 2024 11:54:15 +0800 Subject: [PATCH] uss eth secp256k1 for cli keys add --- cmd/0gchaind/keys.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/0gchaind/keys.go b/cmd/0gchaind/keys.go index 3ec6ee0a..d59073d8 100644 --- a/cmd/0gchaind/keys.go +++ b/cmd/0gchaind/keys.go @@ -52,6 +52,13 @@ The pass backend requires GnuPG: https://gnupg.org/ addCmd := keys.AddKeyCommand() addCmd.Flags().Bool(ethFlag, false, "use default evm coin-type (60) and key signing algorithm (\"eth_secp256k1\")") + algoFlag := addCmd.Flag(flags.FlagKeyAlgorithm) + algoFlag.DefValue = string(hd.EthSecp256k1Type) + err := algoFlag.Value.Set(string(hd.EthSecp256k1Type)) + if err != nil { + panic(err) + } + addCmd.RunE = runAddCmd cmd.AddCommand(