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

Đang mở
#149 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, wasm
Lĩnh vực
blockchain, build-system, ci-cd

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
0
Fork
4
Merge trung bình
54 phút
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Yormee-103/PayLoop

Tất cả issue của Yormee-103/PayLoop

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.