Merge pull request #20 from 0glabs/fix_secp256k1

use eth's secp256k1 for cli keys add
This commit is contained in:
Solovyov1796 2024-05-31 11:59:01 +08:00 committed by GitHub
commit e84a7b02ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(