boltlabs-inc / tss-ecdsa

An implementation of a threshold ECDSA signature scheme
Other
12 stars 5 forks source link

update protocol participants to take participant configs #462

Open marsella opened 1 year ago

marsella commented 1 year ago

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.