Function forest_filecoin::blocks::election_proof::poly_val

source ยท
fn poly_val(poly: &[BigInt], x: &BigInt) -> BigInt
Expand description

poly_val evaluates a polynomial given by coefficients p in Q.256 format at point x in Q.256 format. Output is in Q.256. Coefficients should be ordered from the highest order coefficient to the lowest.