-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tool that converts CIDv0 to CIDv1 #17
Comments
If you're trying to get a CIDv0 and the node has a CIDv1 the node will not be happy. |
The issue is that right now, requesting a protobuf object with cidv1 doesnt fetch an object from disk that was stored as a cidv0. I can add in a translation layer that checks cidV0 when certain formats of cidV1s are encountered. |
Has there been progress on this? |
Both js-ipfs >= v0.33.0 and go-ipfs >= v0.4.18 support # cidv0(b58) → cidv1(b32)
$ ipfs cid base32 QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR
bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi
# cidv1(b58) → cidv1(b32)
$ ipfs cid base32 zb2rhk6GMPQF3hfzwXTaNYFLKomMeC6UXdUt6jZKPpeVirLtV
bafkreigh2akiscaildcqabsyg3dfr6chu3fgpregiymsck7e7aqa4s52zy There is also a standalone js-cid-tool for converting, formatting and discovering properties of CIDs. go-ipfs >= v0.4.18 ships with:
js-ipfs will be able to do the same in near future – tracked in ipfs/js-ipfs#1440 |
This relates to the discussion of origin domains in #6
The text was updated successfully, but these errors were encountered: