This repository was archived by the owner on Sep 28, 2021. It is now read-only.
This repository was archived by the owner on Sep 28, 2021. It is now read-only.
Add resolver support for CIDv1 and Base32 #8
Closed
Description
(part of Migration to CIDv1 https://github.com/ipfs/ipfs/issues/337)
Problem
Right now only multihash
resolver exists and it means directory listing assumes everything is CIDv0 in Base58btc:
js-ipfs-http-response/src/resolver.js
Line 54 in 4f1ace2
js-ipfs-http-response/src/resolver.js
Line 75 in 4f1ace2
This means response for https://js.ipfs.io/ipfs/bafybeibrpdf53xmnhkspaiyo46hqw6avk3vo3tvggwc2szzybd2a5cn24y/img/ is an error:
(when js-ipfs is running in service worker)
Solution
resolver.multihash
should be removed/deprecated and replaced by base-agnostic resolver.cid