PointSharingPolynomial

Type Alias PointSharingPolynomial 

Source
pub type PointSharingPolynomial = StandardFormPolynomial<MaybePoint>;
Expand description

Represents the point-sharing polynomial available to the dealer in standard form, composed of a set of point coefficients.

Aliased Type§

pub struct PointSharingPolynomial {
    pub coefficients: Vec<MaybePoint>,
}

Fields§

§coefficients: Vec<MaybePoint>

The ordered set of coefficients, starting with the constant term.

Implementations§

Source§

impl PointSharingPolynomial

Source

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

Issue a share at the given input x.

Source§

impl PointSharingPolynomial

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.