pub fn protocol<Net: NetInterface + 'static, BI: BlockchainInterface + 'static>(
    n: u32,
    party_id: u32,
    k: u32,
    t: u32,
    network: Net,
    bc: BI,
    session_id: SessionId
) -> Pin<Box<dyn SendFuture<'static, ()>>>
Expand description

party_id: Should be in the range [0, n). For the DKG, should be our index in the best authorities starting from 0.