Legacy artifact hash normalises member names, so NFC-equivalent names hash identically
メンテナーはふだん 1 日以内に返信
@xm33 がすでに取り組んでいます。
2026年11月3日 から。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- security
調査の方向性
Start with reference-implementations/dacs-directory/src/catalog/legacyListingHash.ts around line 30, where member names are NFC-normalised before sorting and serialising. Check the callers in listingVerification.ts (line 336) and bundlePolicy.ts (lines 135 and 212) to see which legacy hashes must keep their current output. Done means that objects with NFC-equivalent member names are rejected, names that are not NFC are rejected, and tests cover both key orders, nested objects, and a non-ASCII name that normalises to ASCII.
索引モデルが issue の本文から書いたものです。
説明
This repo holds community tools for DACS, an open standard for agent commerce, including the reference Directory.
Paths and line numbers are as of main at commit 58055373.
reference-implementations/dacs-directory/src/catalog/legacyListingHash.ts:30 NFC-normalises object member names before sorting and serialising. Two names that are equal after NFC (for example a precomposed and a decomposed é, or U+212A and K) end up as duplicate names in the serialization. Objects that differ only in how member names are spelled then get the same legacyListingHash. The hash is used for legacy Listings (listingVerification.ts:336) and historical bundle artifacts (bundlePolicy.ts:135, :212). The current-profile canonicalizer (canonical.ts:20, SDK jcs.ts) keeps names byte-exact and is not affected.
Fix: in legacyListingHash/legacyCanonicalize, recursively reject any object with two member names that are equal after NFC, and any member name that is not already NFC, instead of serialising them. Test both key orders, nested objects, and a non-ASCII name that normalises to an ASCII one.
Send the fix as a pull request to phase0-completion. It merges once tests pass and a maintainer has approved it.
- 主要言語
- TypeScript
- スター
- 0
- フォーク
- 3
- 平均マージ
- 20時間 26分
- マージ済み PR(30日)
- 119
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DACS-Agent-commerce/Community のほかの issue
-
Payment safety page: explain 'preimage' and 'claim' and name the cross-chain open state preciselyオープンcontributors-section
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
DACS-Agent-commerce/Community#366 ·
メンテナーはふだん 1 日以内に返信
-
contributors-section
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
DACS-Agent-commerce/Community#361 ·
メンテナーはふだん 1 日以内に返信
-
contributors-section
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
DACS-Agent-commerce/Community#359 ·
メンテナーはふだん 1 日以内に返信
-
contributors-section
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
DACS-Agent-commerce/Community#354 ·
メンテナーはふだん 1 日以内に返信
-
OpenAPI entry for the listing version route omits its 409 response対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンcontributors-section
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
DACS-Agent-commerce/Community#348 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
DACS-Agent-commerce/Community の issue をすべて見る
似ている issue
-
Y2025: QBI forms print a negative taxable income; Form 8995-A lines 14b/14c check the wrong columnオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
readest/readest#7903 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
type: documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Oddmash/oddmash-ui#72 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
TMHSDigital/steam-mcp#106 ·
-
bug priority:p3
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
LCNINE/almondyoung-server#1562 ·
メンテナーはふだん 1 日以内に返信