dnslink:// URIs

オープン
#549 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ipfs/specs のほかの issue

ipfs/specs の issue をすべて見る

似ている issue

Networking の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。