gnosis / dkg

Distributed key generation
GNU General Public License v3.0
21 stars 7 forks source link

Finish Lagrange Interpolate Zero #14

Closed collinc97 closed 6 years ago

collinc97 commented 6 years ago

Example Test:

  1. create a random polynomial with threshold t
  2. sample t points from it (x1, fX1) ... (xt, fXt) (this is using the evaluate function)
  3. pass those points into LagrangeInterpolateZero(..) and verify that the result of that == random polynomial evaluated at 0