Skip to content

refactor: extract PartialSignatureMessages::validate() in ssv_types#843

Merged
mergify[bot] merged 1 commit intosigp:unstablefrom
shane-moore:refactor/partial-sig-validation
Feb 26, 2026
Merged

refactor: extract PartialSignatureMessages::validate() in ssv_types#843
mergify[bot] merged 1 commit intosigp:unstablefrom
shane-moore:refactor/partial-sig-validation

Conversation

@shane-moore
Copy link
Member

Issue Addressed

Splits production changes out of #837 per review feedback.

Proposed Changes

  • Add PartialSignatureMessages::validate() method and PartialSignatureMessagesError to ssv_types, mirroring Go's PartialSignatureMessages.Validate()
    • Refactor message_validator to delegate structural validation (empty, inconsistent signers, zero signer) to the new method

Additional Info

#837 depends on this PR for its spec tests.

@shane-moore shane-moore force-pushed the refactor/partial-sig-validation branch from a53c604 to 48a6329 Compare February 25, 2026 21:18
@shane-moore
Copy link
Member Author

@claude, take a look and post response if find anything

@shane-moore shane-moore marked this pull request as ready for review February 25, 2026 21:20
Copy link
Member

@diegomrsantos diegomrsantos left a comment

Choose a reason for hiding this comment

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

Thanks a lot, LGTM!

@mergify mergify bot merged commit 69abede into sigp:unstable Feb 26, 2026
27 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants