pub async fn run<R: Relay, S: SignSetupMessage>(
setup: S,
seed: Seed,
relay: R,
) -> Result<(Signature, RecoveryId), SignError>Expand description
Main entry point for the DSG protocol
This function executes the complete DSG protocol, including both the pre-signature and finish phases.
§Type Parameters
R: Type implementing theRelaytrait for message communicationS: Type implementing theSignSetupMessagetrait for setup parameters
§Arguments
setup: Setup parameters for the protocolseed: Random seed for generating random valuesrelay: Message relay for communication between parties
§Returns
A Result containing either:
Ok((Signature, RecoveryId)): The final signature and recovery IDErr(SignError): An error if the protocol fails