Browse Source

change the default key type to Ed25519 (#1576)

pull/1674/head
Marten Seemann 2 years ago
committed by GitHub
parent
commit
24b27cc71b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      defaults.go

2
defaults.go

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

Loading…
Cancel
Save