Fixes zero/incorrect commitment #45
Conversation
9506d6b to
ec9417c
Compare
|
Claude finished @anupsv's task in 2m 30s —— View job Comprehensive Code Review: Zero Commitment FixI've completed a thorough review of this PR focusing on code quality, security, performance, testing, and documentation. Here's my detailed analysis: ✅ Overall AssessmentThis PR successfully addresses a critical bug in the reshare protocol where new operators would publish zero or incorrect commitments. The fix ensures mathematical correctness by publishing Key Achievement: The PR unifies the commitment semantics between existing and new operators, eliminating a protocol mismatch that could break threshold cryptography. 1. Code Quality✅ Strengths
|
> **Note:** This PR recreates #45 (originally authored by @anupsv) with signed commits, as the original PR had unsigned commits that could not be merged. Fixes zero/incorrect commitment contribution for newly joined operators during reshare. Aligns join-path reshare math with existing-operator semantics. Publishes new-operator commitment as lambda_j * g2^{x'_j} so /pubkey aggregation stays correct. Removes unsafe fallback to raw dealer commitments; now fails fast on commitment derivation errors. Adds regression tests in pkg/reshare for commitment correctness and secret-preservation behavior.
Fixes zero/incorrect commitment contribution for newly joined operators during reshare.
Aligns join-path reshare math with existing-operator semantics.
Publishes new-operator commitment as lambda_j * g2^{x'_j} so /pubkey aggregation stays correct.
Removes unsafe fallback to raw dealer commitments; now fails fast on commitment derivation errors.
Adds regression tests in pkg/reshare for commitment correctness and secret-preservation behavior.