Trait LagrangeInterpolatable

Source
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§

Source

fn get_index(&self) -> &Scalar

Returns the index of the share (x-coordinate)

Source

fn get_share(&self) -> &Scalar

Returns the share value (y-coordinate)

Source

fn get_threshold(&self) -> usize

Returns the threshold required to recover the secret

Implementors§