ipfs / ipfs/ipfs-webui

Settings: normalize CIDs to CIDv1 in base32

Open
#1,874 2 comments 3 reactions 0 assignees View on GitHub
area/screen/explore area/screen/files area/screen/settings effort/days exp/novice good first issue help wanted kind/enhancement P2
Dominant language
JavaScript
Stars
1.6k
Forks
534
PR merge metrics
No merged PRs in 30d

Description

I use IPFS Desktop 0.17.0 and go-ipfs 0.10.0 on Windows 11.

**Is your feature request related to a problem? Please describe.**
IPFS Desktop displays and uses CIDv0 at the moment, which is case-sensitive and considered legacy (see [issue #4143 on go-ipfs](https://github.com/ipfs/go-ipfs/issues/4143#issuecomment-841785144)).

The older format doesn't work with [the more recent gateways](https://ipfs.github.io/public-gateway-checker/).
![image](https://user-images.githubusercontent.com/910321/143242795-4e4e83a0-b425-45c1-90d2-7956acecfb19.png)

It would be also great to have an option to convert all the CIDv0 entries in our repos to CIDv1 with one command.

**Describe the solution you'd like**
I'd like to see the new [CIDv1](https://docs.ipfs.io/concepts/content-addressing/#version-1-v1) (starting with `bafy`) instead of the [CIDv0](https://docs.ipfs.io/concepts/content-addressing/#version-0-v0) (starting with `Qm`) that we have now.

**Describe alternatives you've considered**
I'm not sure, but it's probably possible somehow to get go-ipfs to work with CIDv1s.

**Additional context**
Here are some screenshots where we have only CIDv0s in IPFS Desktop:

Files page:
![image](https://user-images.githubusercontent.com/910321/143243278-cfd67acb-4940-40e1-8150-52c1555f7c0c.png)

"Share link", "Copy CID" and "Inspect" commands:
![image](https://user-images.githubusercontent.com/910321/143243487-8921e1bb-c9bb-4664-ba70-b1306afe4765.png)

Explore page:
![image](https://user-images.githubusercontent.com/910321/143243212-f1aafc1c-ace4-4d2d-999c-b4a7c46aa236.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.