Skip to content

Commit

Permalink
Merge pull request #245 from zhiqiangxu/opt_vss.Create
Browse files Browse the repository at this point in the history
[nit] remove unnecessary assignment
  • Loading branch information
ZhAnGeek authored Jan 11, 2024
2 parents 8a87b22 + b7b73a0 commit f67a429
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion crypto/vss/feldman_vss.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ func Create(ec elliptic.Curve, threshold int, secret *big.Int, indexes []*big.In
}

poly := samplePolynomial(ec, threshold, secret)
poly[0] = secret // becomes sigma*G in v
v := make(Vs, len(poly))
for i, ai := range poly {
v[i] = crypto.ScalarBaseMult(ec, ai)
Expand Down

0 comments on commit f67a429

Please sign in to comment.