InterpolatedPointPolynomial

Type Alias InterpolatedPointPolynomial 

Source
pub type InterpolatedPointPolynomial = LagrangePolynomial<MaybeScalar, MaybePoint>;
Expand description

Represents a point-sharing polynomial interpolated from a set of shares.

Aliased Type§

pub struct InterpolatedPointPolynomial {
    pub evaluations: Vec<Evaluation<MaybeScalar, MaybePoint>>,
}

Fields§

§evaluations: Vec<Evaluation<MaybeScalar, MaybePoint>>

Implementations§

Source§

impl InterpolatedPointPolynomial

Source

pub fn issue_share(&self, x: MaybeScalar) -> PointShare

Issue a share at the given input x.

Source§

impl InterpolatedPointPolynomial

Source

pub fn derive_secret(&self, x: MaybeScalar) -> [u8; 32]

Derive a secret c by hashing the output point produced by evaluating the polynomial on x.