fedimint_server::config::distributedgen

Function run_dkg

Source
pub async fn run_dkg<G: DkgGroup>(
    num_peers: NumPeers,
    identity: PeerId,
    generator: G,
    connections: &DynP2PConnections<DkgPeerMessage>,
) -> Result<(Vec<G>, Scalar)>
Expand description

Runs the DKG algorithms with our peers. We do not handle any unexpected messages and all peers are expected to be cooperative.