Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Verification accepts aux info appends after the history is sufficient, changing the approval digest

Đang mở
#608 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
74/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
distributed-systems

Hướng nghiên cứu

Start in msm.go at buildAuxInfoBatch, computeExpectedAuxInfoForApprovalCollection, and computeNewApproverSignaturesAndSigners, then review IsSufficient and IsLegalAppend in the auxiliary-info flow. Add a verification test for a collecting block that appends a legal entry to sufficient history; done means the block is rejected without changing existing valid behavior.

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

Mô tả

Details

Once the on-chain auxiliary info history is sufficient, honest builders stop appending to it: buildBlockCollectingApprovals passes !isAuxInfoReadyForEpochTransition as the generate flag to buildAuxInfoBatch (msm.go:1057). Verification does not enforce this. computeExpectedAuxInfoForApprovalCollection accepts any proposed batch whose entries pass IsLegalAppend (msm.go:1571), with no check that the history was already sufficient and should be closed.

A dishonest builder can therefore append a legal entry after approvals have started. Every verifier accepts the block, and the aux info digest (the hash of the last history entry) changes.

Impact

The transition wedges for the rest of the epoch. The next collecting block carries the aggregated approval signature from prior blocks, signed over the old digest, and computeNewApproverSignaturesAndSigners appends new signatures over the new digest to it (msm.go:1721). The result is one aggregate over two different messages, which verifyNextEpochApprovalsSignature (msm.go:1148) rejects. Because each block's signer set must be a superset of its parent's, no honest builder can produce a valid collecting block from that point.

Approvals already sent by validators (transition_listener.go:89) are also stale, but that is recoverable since the listener re-signs on every indexed collecting block. The broken aggregate is not.

Reachability

Not reachable today. The only wired app is NoopAuxiliaryInfoApp, whose IsLegalAppend rejects any non-empty entry (adapters.go:196), so the history is always empty and the digest always zero. This becomes live as soon as a real auxiliary info app is configured.

Fix

Verification should mirror the builder: when IsSufficient is true for the on-chain history, reject a proposed block whose batch adds any entry. Add a test that verifies a collecting block with an extra legal entry on top of a sufficient history and asserts rejection.

Ngôn ngữ chính
Go
Star
22
Fork
4
Merge trung bình
3 ngày 5 giờ
Pull request đã merge (30 ngày)
17

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 ava-labs/Simplex

Tất cả issue của ava-labs/Simplex

Issue tương tự

Thêm issue về Go

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.