Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dkg: refactor to reliable broadcast #1896

Merged
merged 3 commits into from
Mar 17, 2023
Merged

dkg: refactor to reliable broadcast #1896

merged 3 commits into from
Mar 17, 2023

Conversation

corverroos
Copy link
Contributor

@corverroos corverroos commented Mar 17, 2023

Refactor DKG to use reliable broadcast instead of p2p broadcast.

category: feature
ticket: #1889

) (map[uint32]*frost.Round1Bcast, map[uint32]*sharing.ShamirShare) {
castMap := make(map[uint32]*frost.Round1Bcast)
for key, cast := range castR1 {
if key.ValIdx != vIdx {
continue
}
if key.TargetID != targetID {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

validation moved to when first received over the wire

dkg/frostp2p.go Outdated Show resolved Hide resolved
corverroos and others added 2 commits March 17, 2023 12:07
@codecov
Copy link

codecov bot commented Mar 17, 2023

Codecov Report

Patch coverage: 67.29% and no project coverage change.

Comparison is base (0bf56a3) 55.68% compared to head (474cfbf) 55.69%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1896   +/-   ##
=======================================
  Coverage   55.68%   55.69%           
=======================================
  Files         172      172           
  Lines       22073    22073           
=======================================
+ Hits        12292    12294    +2     
+ Misses       8207     8205    -2     
  Partials     1574     1574           
Impacted Files Coverage Δ
dkg/dkg.go 57.93% <60.00%> (ø)
dkg/frostp2p.go 70.00% <67.10%> (-3.27%) ⬇️
dkg/frost.go 76.92% <100.00%> (-1.08%) ⬇️

... and 3 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -20,7 +20,7 @@ func TestFrostDKG(t *testing.T) {

const (
nodes = 3
vals = 2
Copy link
Contributor

Choose a reason for hiding this comment

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

why vals=1?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

debugging, thanks will revert

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Mar 17, 2023
@obol-bulldozer obol-bulldozer bot merged commit 3e3bfb5 into main Mar 17, 2023
@corverroos corverroos removed the merge when ready Indicates bulldozer bot may merge when all checks pass label Mar 17, 2023
@obol-bulldozer obol-bulldozer bot deleted the corver/wirebcast branch March 17, 2023 14:56
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.

3 participants