Background
Duplication exists for the first four checks in presign (presign.rs:58-80) and in assert_sign_inputs of sign.rs:
- participants.len() < 2 → NotEnoughParticipants
- ParticipantList::new(...) → DuplicateParticipants
- contains(me) → MissingParticipant { role: "self" }
- threshold.value() > participants.len() → ThresholdTooLarge
Goal: reduce the code redundancy.
User Story
No response
Acceptance Criteria
Make a shared function assert_participant_inputs that would be called as a helper in presigning and signing
Resources & Additional Notes
That was spotted by Barak #3343 (comment)
Background
Duplication exists for the first four checks in presign (presign.rs:58-80) and in assert_sign_inputs of sign.rs:
Goal: reduce the code redundancy.
User Story
No response
Acceptance Criteria
Make a shared function assert_participant_inputs that would be called as a helper in presigning and signing
Resources & Additional Notes
That was spotted by Barak #3343 (comment)