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 theRelay
trait for message communicationS
: Type implementing theFinalSignSetupMessage
trait for setup parameters
§Arguments
setup
: Setup parameters for the protocolrelay
: 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