Skip to content

current IPFS Gateway does not support CIDv1. #276

Open
@gratestas

Description

@gratestas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions