build/secret-sharing.js
//       using the exp/log form will result in incorrect value
using the exp/log form will result in incorrect value
using the exp / log form will result in incorrect value
function horner (x, coeffs) {
    var logx = config.logs[x]
    var fx = 0
    var i
    for (i = coeffs.length - 1; i >= 0; i--) {
      if (fx !== 0) {
        fx = config.exps[(logx + config.logs[fx]) % config.maxShares] ^ coeffs[i]
      } else {
        fx = coeffs[i]
      }
    }
    return fx
  }
function horner ( x , coeffs ) { var logx = config . logs [ x ] var fx = 0 var i for ( i = coeffs . length - 1 ; i >= 0 ; i -- ) { if ( fx !== 0 ) { fx = config . exps [ ( logx + config . logs [ fx ] ) % config . maxShares ] ^ coeffs [ i ] } else { fx = coeffs [ i ] } } return fx }
using the exp/log form will result in incorrect value
using the exp / log form will result in incorrect value