Function finish

Source
pub async fn finish<R: Relay, S: FinalSignSetupMessage>(
    setup: S,
    relay: R,
) -> Result<(Signature, RecoveryId), SignError>
Expand description

Executes the finish phase of the DSG protocol

This function runs the finish phase of the protocol, using a pre-signature to generate the final signature for a message.

§Type Parameters

  • R: Type implementing the Relay trait for message communication
  • S: Type implementing the FinalSignSetupMessage trait for setup parameters

§Arguments

  • setup: Setup parameters for the protocol
  • relay: Message relay for communication between parties

§Returns

A Result containing either:

  • Ok((Signature, RecoveryId)): The final signature and recovery ID
  • Err(SignError): An error if the protocol fails