Skip to content

Commit

Permalink
change the default key type to Ed25519
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Aug 9, 2022
1 parent 61f0605 commit 11b284c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var DefaultPeerstore Option = func(cfg *Config) error {

// RandomIdentity generates a random identity. (default behaviour)
var RandomIdentity = func(cfg *Config) error {
priv, _, err := crypto.GenerateKeyPairWithReader(crypto.RSA, 2048, rand.Reader)
priv, _, err := crypto.GenerateEd25519Key(rand.Reader)
if err != nil {
return err
}
Expand Down

0 comments on commit 11b284c

Please sign in to comment.