Skip to content

fix: add owner validatation to resign#31

Merged
alok-ssv merged 1 commit into
mainfrom
fix/f-dkg-spec-003
Mar 30, 2026
Merged

fix: add owner validatation to resign#31
alok-ssv merged 1 commit into
mainfrom
fix/f-dkg-spec-003

Conversation

@alok-ssv
Copy link
Copy Markdown
Contributor

Addresses F-dkg-spec-003

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses F-dkg-spec-003 by ensuring a Resign message’s Owner matches the Owner embedded in the accompanying ceremony SignedProof, aligning resign validation behavior with existing reshare validation.

Changes:

  • Add an owner equality check between resign.Owner and proof.Proof.Owner in ValidateResignMessage.
  • Update resign validation tests to assert an error when the resign owner differs from the proof owner.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
resign.go Adds owner/proof owner mismatch validation to prevent accepting resign messages with unrelated proofs.
testing/resign_test.go Updates the relevant test case to expect "invalid owner address" when the owner does not match the proof.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

@iurii-ssv iurii-ssv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alok-ssv alok-ssv merged commit 0e27731 into main Mar 30, 2026
6 checks passed
@alok-ssv alok-ssv deleted the fix/f-dkg-spec-003 branch March 30, 2026 08:26
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.

4 participants