Skip to main content

part1

Function part1 

Source
pub fn part1<M, R: RngCore + CryptoRng>(
    identifier: Identifier<M>,
    max_signers: u16,
    min_signers: u16,
    rng: R,
) -> Result<(SecretPackage<M>, Package<M>), Error<M>>
Expand description

Performs the first part of the distributed key generation protocol for the given participant.

It returns the round1::SecretPackage that must be kept in memory by the participant for the other steps, and the round1::Package that must be sent to other participants.