Skip to main content

run_dkg

Function run_dkg 

Source
pub fn run_dkg(
    scheme: &str,
    threshold: u32,
    party_count: usize,
) -> Result<Vec<Vec<u8>>>
Expand description

Drive a registered DKG scheme to completion in-process.

Creates party_count sessions (one per party) under the named scheme, runs every round until all sessions signal completion, and returns the per-party result blobs in roster order.

threshold must be in 1..=party_count. Parties are in-process (Party::inproc), identified p0p{n-1}.