# Error when initializing ipfs-core with Ed25519 Peer Id

**URL:** <https://discuss.ipfs.tech/t/error-when-initializing-ipfs-core-with-ed25519-peer-id/15713>\
**Category:** Help\
**Tags:** js-ipfs\
**Created:** [December 16, 2022, 8:52pm UTC](https://discuss.ipfs.tech/t/error-when-initializing-ipfs-core-with-ed25519-peer-id/15713 "2022-12-16T20:52:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aewing](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/aewing/32/7285_2.png) [@aewing](https://discuss.ipfs.tech/u/aewing)\
**Post date:** [December 16, 2022, 8:52pm UTC](https://discuss.ipfs.tech/t/error-when-initializing-ipfs-core-with-ed25519-peer-id/15713/1 "2022-12-16T20:52:21Z")

</div>

When initializing ipfs-core (js-ipfs) with an Ed25519 PeerId (created with `@libp2p/peer-id-factory` and `@libp2p/crypto`) I am unable to connect to a node process from the browser using circuit swarm addresses or with `swarm.connect` (I receive an encryption error from `swarm.connect`).

I am trying to use a seeded private key to initialize IPFS, but even when using `createEd25519PeerId` I am seeing these errors. The connection works fine if I use a default peer id.
