Function pre_signature

Source
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 the Relay trait for message communication
  • S: Type implementing the PreSignSetupMessage trait for setup parameters

§Arguments

  • setup: Setup parameters for the protocol
  • seed: Random seed for generating random values
  • relay: Message relay for communication between parties

§Returns

A Result containing either:

  • Ok(PreSign): The pre-signature result
  • Err(SignError): An error if the protocol fails