PieceCIDv2 validation vs FRC-0069: oversized trees, heights 0/1, and the 0-byte vector
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- solidity
- Área
- backend-api-design
Línea de trabajo
Read FRC-0069 alongside Cids.validateCommPv2 and PDPVerifier.addPieces, then compare the listed vectors and results in report/REPORT.md and vectors/piececid-v2.json. Determine which behaviors should match the FRC, including oversized trees, heights 0 and 1, the 0-byte vector, and padding varints. Done means the intended rules are agreed and documented or implemented consistently.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Following up on the canonical-encoding point in #286. We ran 1,244 PieceCIDv2 vectors (generated from a reference model written from the FRC-0069 text) through Cids.validateCommPv2 and PDPVerifier.addPieces at 3d486ae, on both compact and legacy data sets. Both storage paths agree with each other on every vector. Three places differ from the FRC, and we'd like to know which are intended:
- Non-minimal trees are accepted. FRC-0069 makes the height the minimal one for the payload (padding < data, height 2 excepted).
addPiecesonly checks that padding fits in the tree, so a 127-byte payload can be added as (padding 0, h 2), (127, h 3), (381, h 4), ... Each is a different CID with a different root, and each is accepted (33 vectors). So one payload has many valid on-chain identities (findPieceIdsByCid, CID-keyed accounting in FWSS), and the provider proves, and the client pays for, zero padding. Is the oversized form meant to be valid? - Heights 0 and 1 are accepted (17 vectors). The FRC's minimum is height 2 (127 bytes). Some tests here use height-0 pieces, so this may be deliberate. If it is, would a note in the FRC or in
Cids.solhelp? - The FRC's 0-byte vector is rejected.
bafkzcibcp4bdomn3tgwgrh3g532zopskstnbrd2n3sxfqbze7rxt7vqn7veigmy(padding 127, h 2) failsisPaddingExcessive(128*127/127 >= 2^7). Rejecting empty pieces makes sense; the FRC currently says the opposite.
Minor: the library function validateCommPv2 on its own accepts 10-byte padding varints (2^63, 2^64), which addPieces then rejects only through the height cap.
Vectors, per-vector results and the reference model: https://github.com/let-the-dreamers-rise/pdp-conform (report/REPORT.md, vectors/piececid-v2.json). Happy to send a PR for whichever direction you prefer.
Generated by Claude Code
- Lenguaje dominante
- Solidity
- Estrellas
- 20
- Forks
- 18
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 FilOzone/pdp
-
Release process improvement ideas/observations from pdp v3.5.0Quizá libre de nuevo @BigLep la tomó hace 81 días y no hay ningún pull request abierto. Abierto
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 28/100
Todos los issues de FilOzone/pdp
Issues similares
-
In-box secret files written before their chmod: lc-creds, stacks tee, and the workspace tokenAbiertomodel:sonnet runtime:claude security size:S
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
FootprintAI/Containarium#3671 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
HolidayBase: reassigning `language` does not re-initialize translations or re-populate holidaysPosiblemente ocupada @shikhabhadoria la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
vacanza/holidays#4116 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug server-sequentialthinking v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
modelcontextprotocol/servers#5526 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug CLI exec
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día