Skip to content

resharing: reject party in both committees, check pubkey per sender - #6

Merged
anhthii merged 1 commit into
masterfrom
fix/reshare-overlapping-committee
Nov 16, 2026
Merged

anhthii merged 1 commit into
masterfrom
fix/reshare-overlapping-committee

Conversation

@vietddude

Copy link
Copy Markdown
Collaborator

Problem

Upstream bnb-chain/tss-lib#326: resharing panics with a nil pointer when the same party keys are used for the old and new committees.

A party in both committees calls allOldOK() in round 1 Start, so Update skips every round 1 message and save.ECDSAPub/EDDSAPub stays nil. Upstream then panics in the Paillier proof in round 2. Here round 2 uses modproof, so it fails later in round 4 with a misleading pubkey mismatch.

Separately, the round 1 pubkey consistency check always read message 0, so it compared that message with itself.

Fix (ECDSA and EdDSA)

  • Round 1 Start returns an error when the party is in both committees.
  • Round 1 Update reads the pubkey from each sender's message.

Tests

  • New TestRejectsPartyInBothCommittees in both resharing packages (fails without the fix).
  • Full ecdsa/resharing and eddsa/resharing suites pass.

mpcium is unaffected: its party keys include label+version, so old and new keys always differ.

A party whose key is in both the old and new committees skipped all
round 1 messages, leaving the saved pubkey nil (upstream issue bnb-chain#326
panics on it). Fail fast in round 1 instead, and validate each old
party's pubkey rather than re-reading message 0.
@anhthii
anhthii merged commit f65a045 into master Nov 16, 2026
5 checks passed
@anhthii
anhthii deleted the fix/reshare-overlapping-committee branch November 16, 2026 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants