Skip to content

Commit

Permalink
fix: make rsa the default key type
Browse files Browse the repository at this point in the history
It's already the default when initializing the node, we might as well make it
the default when creating new keys.

fixes ipfs#6861
  • Loading branch information
Stebalien authored and Walter Beegle committed Jun 6, 2020
1 parent e67db96 commit 85e78d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/commands/keystore.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ var keyGenCmd = &cmds.Command{
Tagline: "Create a new keypair",
},
Options: []cmds.Option{
cmds.StringOption(keyStoreTypeOptionName, "t", "type of the key to create [rsa, ed25519]"),
cmds.StringOption(keyStoreTypeOptionName, "t", "type of the key to create [rsa, ed25519]").WithDefault("rsa"),
cmds.IntOption(keyStoreSizeOptionName, "s", "size of the key to generate"),
},
Arguments: []cmds.Argument{
Expand Down

0 comments on commit 85e78d9

Please sign in to comment.