Verifiable builds: compare the CI wasm hash with the deployed contract

Abierto
#149 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
github-actions, wasm

Línea de trabajo

Start with .github/workflows/contract.yml to see where the wasm artifact is built and uploaded, then read contracts/deployment.testnet.json and contracts/DEPLOYMENT.md to see how wasmHash is recorded. Add a sha256 step that writes the hash to the job summary, and a script in scripts/ that compares a local build against the manifest and reports any mismatch. Done when the CI summary shows the hash, the script exits non-zero on mismatch, and the reproducibility findings are documented.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

contract difficulty: advanced dx help wanted security

Difficulty: Advanced

Problem

CI uploads the built wasm, and contracts/deployment.testnet.json records the deployed wasmHash, but nothing checks that a given commit actually produces that hash. The deployed hash (from July) predates later source changes.

Why it matters

"The deployed contract matches the source" is a core trust claim for an invoicing and payments contract.

Scope of work

Compute the sha256 of the CI wasm artifact and print it in the job summary; document how to reproduce the build locally; add a script that compares the built hash with deployment.testnet.json and reports a mismatch clearly. Investigate whether the build is reproducible across machines (toolchain pinning).

Expected outcome

Anyone can verify which source commit a deployed contract corresponds to.

Acceptance criteria

  • The CI summary shows the wasm sha256.
  • A documented script compares it with the manifest.
  • Reproducibility findings and any toolchain pinning are documented.

Relevant files

  • .github/workflows/contract.yml, contracts/DEPLOYMENT.md, contracts/deployment.testnet.json, scripts/ (new script)

Dependencies

Pairs well with #54.

Maintainer discussion needed?

No.

Lenguaje dominante
TypeScript
Estrellas
0
Forks
4
Merge medio
54 min
PR fusionados (30 d)
6

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Yormee-103/PayLoop

Todos los issues de Yormee-103/PayLoop

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.