From eb1614dfde8cac627d19f2d0947b5ebb328202d9 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 --- client/keys.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/keys.go b/client/keys.go index bbcc318d..4bbecba8 100644 --- a/client/keys.go +++ b/client/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(