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

Support identity CIDs #3289

Closed
ipfs/js-ipfs-repo
#297
@oed

Description

  • Version: 0.50.2

  • Platform: macos

  • Subsystem: dag api

Severity:

Low

Description:

I'm wondering how to work with "identity" CIDs. Tried some apis that I thought would intuitively work with them, but they seem to hang (more info below).

An identity CID is created by using the identity multihash which has codec 0x00 and the value of the hash is just the data itself. An example can be found here: https://cid.ipfs.io/#bafyqacnbmrqxgzdgdeaui

Is there some other way that is recomended to work with identity CIDs than the normal dag api?

Steps to reproduce the error:

Both of these method calls just hang:

await ipfs.dag.get(new CID('bafyqacnbmrqxgzdgdeaui'))
await ipfs.block.get(new CID('bafyqacnbmrqxgzdgdeaui'))

Metadata

Assignees

No one assigned

    Labels

    P1High: Likely tackled by core team if no one steps upkind/bugA bug in existing code (including security flaws)status/readyReady to be worked

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions