@cryptotaxi247 / kubo / commits / 33861b0d4

fix: make rsa the default key type

It's already the default when initializing the node, we might as well make it the default when creating new keys. fixes #6861

Steven Allen committed Feb 3, 2020 at 18:10 UTC 33861b0d403375ecd579d001ad42916fb6630d19
1 file changed +1 -1
core/commands/keystore.go
+1 -1
@@ -63,7 +63,7 @@ var keyGenCmd = &cmds.Command{
63 Tagline: "Create a new keypair",
64 },
65 Options: []cmds.Option{
66 - cmds.StringOption(keyStoreTypeOptionName, "t", "type of the key to create [rsa, ed25519]"),
66 + cmds.StringOption(keyStoreTypeOptionName, "t", "type of the key to create [rsa, ed25519]").WithDefault("rsa"),
67 cmds.IntOption(keyStoreSizeOptionName, "s", "size of the key to generate"),
68 },
69 Arguments: []cmds.Argument{