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

Aperta
#149 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github-actions, wasm

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
0
Fork
4
Merge medio
54m
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Yormee-103/PayLoop

Tutte le issue di Yormee-103/PayLoop

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.