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

オープン
#149 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github-actions, wasm

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
0
フォーク
4
平均マージ
54分
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Yormee-103/PayLoop のほかの issue

Yormee-103/PayLoop の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。