Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Task: Refactor DKG and resharing #5

Closed
yiannisbot opened this issue Nov 25, 2022 · 3 comments
Closed

Task: Refactor DKG and resharing #5

yiannisbot opened this issue Nov 25, 2022 · 3 comments
Labels
starmaps Starmaps.app roadmapping

Comments

@yiannisbot
Copy link

yiannisbot commented Nov 25, 2022

eta: 2023-03-31

description: The current implementation of the Distributed Key Generation used in drand has served us well for the initial stages of the drand service and growth, but cannot support our plans for expansion of the League of Entropy, or async and more frequent resharing ceremonies. A refactored DKG with simpler and more straightforward CLI interactions can make the operator’s job easier.
Example challenges we’ve identified include:

  • nodes restarting during a resharing ceremony end up in the wrong state and effectively block the DKG from completing
  • some messages are sent in sync, but some others are gossiped, which results in some of them being delayed and makes things difficult to monitor and debug.

Apart from implementing the features to deal with the above-mentioned challenges, successful completion of this Milestone will be marked by async mainnet ceremonies.

You can read the DKG specification in this Notion doc: DKGv2 Spec.

@yiannisbot yiannisbot added the starmaps Starmaps.app roadmapping label Nov 25, 2022
@AnomalRoil
Copy link
Member

Proposition:

  • add a new milestone "drand v2" in the Maintenance theme
  • have this DKG milestone fall under that as a child so that we can close it now that it's merged in develop
  • add the "unified gossiping mechanism" to it as child too
  • add "Refactor public APIs" to it as a child too
  • add "release v2" as the last child milestone

@yiannisbot
Copy link
Author

@AnomalRoil agreed on the proposition, which is done now: #30.

I have not included "unified gossiping" as part of it, as this is a task that requires significant amount of work (in the order of a couple of months) and I'm not sure we'll be able to find time for this. If we wanted to have it, we should have included it in the initial roadmap. As things stand now, we'll have to drop something else and I don't see what can be dropped. If we have suggestions, we need to bring them forward and make a decision with the team and leadership.

@yiannisbot
Copy link
Author

Regarding closing this issue: I'm not opposed, but we haven't done any testing on the refactoring. We should either keep this open until we have testing done, or add a separate task on the testing of the refactored DKG.

@yiannisbot yiannisbot changed the title Milestone: Refactor DKG and resharing Task: Refactor DKG and resharing May 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
starmaps Starmaps.app roadmapping
Projects
None yet
Development

No branches or pull requests

2 participants