Skip to content

Implement CDummyDKG and CDummyCommitment until we have the real DKG merged#2492

Merged
codablock merged 7 commits into
dashpay:developfrom
codablock:pr_dip6_dummydkg
Nov 26, 2018
Merged

Implement CDummyDKG and CDummyCommitment until we have the real DKG merged#2492
codablock merged 7 commits into
dashpay:developfrom
codablock:pr_dip6_dummydkg

Conversation

@codablock
Copy link
Copy Markdown

This implements the dummy DKG mentioned in #2477

This will only run on testnet/devnet/regtest and only if SPORK_17_QUORUM_DKG_ENABLED is enabled. The same spork will later be reused for the real DKG.

The dummy DKG uses deterministicaly generated secret polynomials, which is then used to derive the quorum public keys and secret key shares of individual "members". This is as insecure as something can be in regard to the quorum key and will NEVER be used on mainnet. Even on testnet, these keys won't be used for anything other then the validation of the commitment.

The dummy DKG is however good enough to test the simple PoSe functionality on testnet. Imagine it as some kind of voting on offline/slow MNs. Each MN will remember which other MNs didn't participate in previous rounds and then mark those as bad in the next round. If enough MNs (>=threshold) mark the same members as bad, they'll eventually get PoSe punished and if it happens multiple times they get PoSe banned. This type of voting is secure, even with the dummy DKG as no single member is able to create a valid commitment that punishes another member if not enough other MNs agree.

…erged

This is only used on testnet/devnet/regtest and will NEVER be used on
mainnet. It is NOT SECURE AT ALL!

See comment in quorums_dummydkg.h for more details.
@UdjinM6 UdjinM6 modified the milestones: 14.0, 13.0 Nov 25, 2018
UdjinM6
UdjinM6 previously approved these changes Nov 25, 2018
Copy link
Copy Markdown

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

Comment thread src/llmq/quorums_dummydkg.h Outdated
nmarley
nmarley previously approved these changes Nov 25, 2018
Copy link
Copy Markdown

@nmarley nmarley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK, thru commit d02c4bc

UdjinM6
UdjinM6 previously approved these changes Nov 25, 2018
@codablock codablock dismissed stale reviews from UdjinM6 and nmarley via ad8153b November 26, 2018 05:20
@codablock
Copy link
Copy Markdown
Author

Tests are finally green, but I'll need re-ACKs due to the commits I added

Copy link
Copy Markdown

@gladcow gladcow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

Copy link
Copy Markdown

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re-utACK

@codablock codablock merged commit a4f5ba3 into dashpay:develop Nov 26, 2018
@codablock codablock deleted the pr_dip6_dummydkg branch November 26, 2018 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants