Settings: normalize CIDs to CIDv1 in base32

未关闭
#1,874 2 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
javascript, react
领域
frontend

调研方向

首先,跟踪 issue 中提到的 Settings、Files、Share link、Copy CID、Inspect 和 Explore 入口如何显示和复制 CIDs。在确定规范化和所请求的单命令转换应如何工作之前,先了解整个 repository 中现有的 CID 处理方式;当显示和使用的 CIDs 遵循所请求的 CIDv1 base32 格式时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

area/screen/explore area/screen/files area/screen/settings effort/days exp/novice good first issue help wanted kind/enhancement P2

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).

The older format doesn't work with the more recent gateways.
image

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 (starting with bafy) instead of the CIDv0 (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

"Share link", "Copy CID" and "Inspect" commands:
image

Explore page:
image

主要语言
JavaScript
星标
1.6k
派生
539
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ipfs/ipfs-webui 的其他 Issue

查看 ipfs/ipfs-webui 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。