Legacy artifact hash normalises member names, so NFC-equivalent names hash identically
Los mantenedores suelen responder en 1 día
@xm33 ya está trabajando en esto.
Desde el 3/11/2026.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- security
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 0
- Forks
- 3
- Merge medio
- 20 h 26 min
- PR fusionados (30 d)
- 119
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de DACS-Agent-commerce/Community
-
Payment safety page: explain 'preimage' and 'claim' and name the cross-chain open state preciselyAbiertocontributors-section
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
DACS-Agent-commerce/Community#366 ·
Los mantenedores suelen responder en 1 día
-
contributors-section
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
DACS-Agent-commerce/Community#361 ·
Los mantenedores suelen responder en 1 día
-
contributors-section
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
DACS-Agent-commerce/Community#359 ·
Los mantenedores suelen responder en 1 día
-
contributors-section
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
DACS-Agent-commerce/Community#354 ·
Los mantenedores suelen responder en 1 día
-
OpenAPI entry for the listing version route omits its 409 responsePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertocontributors-section
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
DACS-Agent-commerce/Community#348 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de DACS-Agent-commerce/Community
Issues similares
-
Y2025: QBI forms print a negative taxable income; Form 8995-A lines 14b/14c check the wrong columnAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
readest/readest#7903 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
type: documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Oddmash/oddmash-ui#72 ·
Los mantenedores suelen responder en 1 día
-
bug good first issue priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
TMHSDigital/steam-mcp#106 ·
-
bug priority:p3
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
LCNINE/almondyoung-server#1562 ·
Los mantenedores suelen responder en 1 día