Skip to content

Commit

Permalink
use correct threshold in dkg (#45)
Browse files Browse the repository at this point in the history
This is fine for drand as we use our own threshold calculation in drand https://github.com/drand/drand/blob/master/key/group.go#L355 but the DKG package should use this as well.
n / 2 + 1 is the right number
  • Loading branch information
nikkolasg authored Feb 8, 2023
1 parent f864ea9 commit 57e99ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/dkg/dkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ func findIndex(list []Node, index Index) (kyber.Point, bool) {
}

func MinimumT(n int) int {
return (n + 1) / 2
return (n >> 1) + 1
}

func isIndexIncluded(list []Node, index uint32) bool {
Expand Down

0 comments on commit 57e99ee

Please sign in to comment.