Skip to content

Commit

Permalink
fix: proper loop on totalKeyShares function
Browse files Browse the repository at this point in the history
  • Loading branch information
wregulski committed Oct 17, 2024
1 parent f5bc7a0 commit 6ed7ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion primitives/ec/privatekey.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func (p *PrivateKey) ToKeyShares(threshold int, totalShares int) (keyShares *key
}

points := make([]*keyshares.PointInFiniteField, 0)
for range totalShares {
for i := 0; i < totalShares; i++ {
pk, err := NewPrivateKey()
if err != nil {
return nil, err
Expand Down

0 comments on commit 6ed7ab7

Please sign in to comment.