pub trait LagrangeInterpolatable {
// Required methods
fn get_index(&self) -> &Scalar;
fn get_share(&self) -> &Scalar;
fn get_threshold(&self) -> usize;
}
Expand description
Trait for Lagrange interpolation
Provides the necessary methods for performing Lagrange interpolation on a set of shares to recover the original secret.
Required Methods§
Returns the share value (y-coordinate)
Sourcefn get_threshold(&self) -> usize
fn get_threshold(&self) -> usize
Returns the threshold required to recover the secret