pub fn message_receivers<S, F>(setup: &S, variant: DsgVariant, msg_receiver: F)
Expand description
Generates a map of message receivers for the DSG protocol
This function helps set up the message routing for the DSG protocol by determining which messages should be sent to which participants.
§Type Parameters
S
- A type implementing theProtocolParticipant
traitF
- A closure type for handling message receivers
§Arguments
setup
- The protocol setup configurationvariant
- The variant of the DSG protocol to runmsg_receiver
- A closure that will be called for each (message_id, verifier) pair