Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update protocol participants to take participant configs #462

Open
2 tasks
marsella opened this issue Aug 4, 2023 · 0 comments
Open
2 tasks

update protocol participants to take participant configs #462

marsella opened this issue Aug 4, 2023 · 0 comments

Comments

@marsella
Copy link

marsella commented Aug 4, 2023

Right now, the ProtocolParticipant constructor takes one participant identifier for itself and a separate array for the other participants, and we don't validate anything about those types in the constructors. Instead, we should use the ParticipantConfig type, which bundles the self and others into a named type and does validation on construction that there aren't duplicates, there are a valid number of others, etc.

  • Update the ProtocolParticipant trait to take a ParticipantConfig instead of separate id and other_participant_ids fields.
  • Update all the call sites
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

No branches or pull requests

1 participant