Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Encryption & connection errors when using Ed25519 PeerId #4269

Closed as not planned
@aewing

Description

@aewing
  • Version:
{
  "version": "0.17.0",
  "commit": "e8b7b66bfa98c2a1c0d0bfc19f698d7d00b6c888",
  "repo": "12",
  "ipfs-core": "0.17.0",
  "interface-ipfs-core": "^0.157.0"
}
  • Platform:

Darwin 21.6.0 arm64 & latest chrome

  • Subsystem:

libp2p?

Severity:

Critical

Description:

I generated an Ed25519 PeerId (either using createFromPrivKey or createEd25519PeerId from @libp2p/peer-id-factory [^1.0.20]), called create from ipfs-core, passing the peerId to init.privateKey with init.algorithm set to Ed25519 and passing the peerId to libp2p.peerId.
When connecting to a node process via swarm, I see encryption errors. ('ERR_ENCRYPTION_FAILED' from @chainsafe/libp2p-noise)
With the same setup but a default peerId, I do not see errors and the peers are connecting without issue.

Steps to reproduce the error:

See description.

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions