multiparty/bwwc

Decryption results in incorrect value.

Closed this issue · 4 comments

Write unit tests for each function.

Functions to check

  • sampleShamirPolynomial
  • shamirShare
  • shamirAdd (python backend)
  • evaluateAtPoint
  • interpolateAtPoint
  • lagrangeConstantsForPoint
  • shamirReconstruct
  • modularInverse
  • power
  • gcd

Something's wrong with the evaluateAtPoint() unit tests in encryption.test.ts on feat/csv-shares branch

Nvm evaluateAtPoint() is working. The issue I was facing had to do with how to set globals in multiple Jest tests.

Also just checked that the frontend and backend are both using the same prime number.

Fixed in commit d14d27e