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

Commit

Permalink
feat: support CIDs in /ipns/ content paths
Browse files Browse the repository at this point in the history
This is WIP. While the change is minimal, the code does not work
because we requires async refactor of libp2p to land first.

License: MIT
Signed-off-by: Marcin Rataj <[email protected]>
  • Loading branch information
lidel committed Oct 25, 2019
1 parent b289a19 commit 252c770
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
"p-iteration": "^1.1.8",
"p-queue": "^6.1.0",
"peer-book": "^0.9.1",
"peer-id": "^0.12.2",
"peer-id": "libp2p/js-peer-id#feat/cid-support",
"peer-info": "~0.15.1",
"progress": "^2.0.1",
"promise-nodeify": "^3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/core/ipns/resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class IpnsResolver {

// resolve ipns entries from the provided routing
async _resolveName (name) {
const peerId = PeerId.createFromB58String(name)
const peerId = PeerId.createFromCID(name)
const { routingKey } = ipns.getIdKeys(peerId.toBytes())
let record

Expand Down

0 comments on commit 252c770

Please sign in to comment.