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
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'))