Function crypto::shamir::poly_interpolate

source ยท
fn poly_interpolate(xs: &[gf256], ys: &[gf256]) -> gf256
Expand description

This function performs polynomial interpolation. Given a set of points defined by x and y coordinates, it returns the y-intercept of the unique polynomial that passes through all of the points, with the degree $n - 1$, where $n$ is the number of points passed to the function.