progress method
Implementation
DkgInProgress progress(Identifier selfId) => DkgInProgress(
details: details,
expiry: expiry,
creator: creator,
stage: round is ClientDkgRound1State ? DkgStage.round1 : DkgStage.round2,
completed: round is ClientDkgRound1State
? round1.commitments.map((c) => c.$1).toSet()
// Add self Identifier to give consistent view of completion for both
// rounds whereby inclusion of self Identifier indicates client has sent
// the round
: (round2.secretShares.keys.toSet()..add(selfId)),
);