dnslink:// URIs

未关闭
#549 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
活跃
领域
networking

调研方向

首先阅读 #544 中的 ipfs:// 和 ipns:// 规范,然后将 @helia/verified-fetch 中对 dnslink:// 的处理与独立的 @helia/ipns 和 @helia/dnslink 模块进行比较。完成的标准是:issue 中未解决的设计问题已经得到解决,并且规范明确规定是否支持 dnslink:// 以及如何解释其 authority。

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

描述

need/triage

Since #544 we have specs for ipfs:// and ipns:// URIs.

ipfs:// is quite straightforward but ipns:// has always had a weird wrinkle in that the authority could be something you can resolve using a routing query for the IPNS namespace, or a DNS query for a TXT record as defined by https://dnslink.dev/

These are not the same thing, you cannot resolve an IPNS Record using DNSLink, nor can you resolve a TXT record via a routing query for the IPNS namespace.

We can't even parse the authority in the same way leading to janky looking constructs like:

let authority

try {
  authority = parseAsPublicKeyHash(url.hostname)
  // hooray, it's probably an IPNS name
} catch {
  // what is it? lol I don't know, maybe it's a domain name?
  authority = parseAsDomainName(url.hostname)
}

Internally @helia/verified-fetch introduces a dnslink:// URL protocol which simplifies handling and Helia has long separated resolution into the comparatively heavyweight (in terms of dependencies) @helia/ipns and lightweight @helia/dnslink modules.

Perhaps DNSLink should be promoted to a first class citizen in the ecosystem and we should allow dnslink:// URIs alongside ipns:// and ipfs://?

主要语言
HTML
星标
1.2k
派生
250
PR 合并指标
30 天内没有已合并 PR

环境准备

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

从这里开始

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

ipfs/specs 的其他 Issue

查看 ipfs/specs 的全部 Issue

相似的 Issue

更多 Networking Issue

把新 issue 发到你的邮箱

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