Skip to content
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

current IPFS Gateway does not support CIDv1. #276

Open
gratestas opened this issue Nov 1, 2022 · 0 comments
Open

current IPFS Gateway does not support CIDv1. #276

gratestas opened this issue Nov 1, 2022 · 0 comments

Comments

@gratestas
Copy link
Contributor

data encoded with CIDv1 cannot be accessed over ipfs.kleros.io/ipfs/{cid} API
https://ipfs.kleros.io/ipfs/bafkreicceibxr2urvyycth4tkgsggdzvt3ehmqb6pu5oi56plc2xpj2g3a

IPLD's encoded using

  • base58btc start with Qm... characters
  • base32 start with bafk... multibase prefix

because CIDv1 supports multiple codecs and multiple bases and CIDv0 does not, not all CIDv1 can be converted to CIDv0

as a hotfix:
we implement a conditional case based on the prefix type to fetch from corresponding API

  • if Qm.. use ipfs.kleros.io/ipfs/{cid}
  • if bafk.. use {cid}.ipfs.dweb.link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant