Review the fairness of the single signature selection algorithm for the non-recursive SNARK

Đang mở
#3,427 1 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 2 ngày

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

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
38/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
rust
Lĩnh vực
blockchain, cryptography

Hướng nghiên cứu

Trước tiên, hãy đọc proof_system/halo2_snark/clerk.rs và các test hiện có cho select_valid_signatures_for_k_indices. Mô hình hóa và mô phỏng xác suất lựa chọn theo stake và các lottery đã thắng, sau đó đánh giá ảnh hưởng của signer. Công việc được coi là hoàn tất khi có báo cáo fairness, có điều chỉnh nếu phát hiện bias và có các property test bao quát kết quả.

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

Mô tả

cryptography :closed_lock_with_key: to-groom :thinking:

Why

select_valid_signatures_for_k_indices picks the signatures that enter the proof by hash priority, then deduplicates by keeping the smallest hash per index. The algorithm is deterministic and tested, but its fairness across signers over many epochs has not been analyzed.

What

Analyze the selection algorithm for fairness and for manipulability, and adjust it if the analysis calls for it.

How

  • Model the selection probability per signer as a function of the stake and of the number of won lotteries
  • Check whether a signer can influence its own selection odds
  • Simulate the selection over many epochs and report the distribution
  • Propose an adjustment if a bias is found, and cover it with property tests (proof_system/halo2_snark/clerk.rs)

Later

Ngôn ngữ chính
Rust
Star
155
Fork
52
Merge trung bình
2 ngày 17 giờ
Pull request đã merge (30 ngày)
37

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 IntersectMBO/mithril

Tất cả issue của IntersectMBO/mithril

Issue tương tự

Thêm issue về Rust

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.