pub async fn pre_signature<R: Relay, S: PreSignSetupMessage>(
setup: S,
seed: Seed,
relay: R,
) -> Result<PreSign, SignError>Expand description
Executes the pre-signature phase of the DSG protocol
This function runs only the pre-signature phase of the protocol, producing a pre-signature that can be used later to sign messages.
§Type Parameters
R: Type implementing theRelaytrait for message communicationS: Type implementing thePreSignSetupMessagetrait 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(PreSign): The pre-signature resultErr(SignError): An error if the protocol fails