Struct blsttc::poly::BivarPoly[][src]

pub struct BivarPoly { /* fields omitted */ }
Expand description

A symmetric bivariate polynomial in the prime field.

This can be used for Verifiable Secret Sharing and Distributed Key Generation. See the module documentation for details.

Implementations

Creates a random polynomial.

Panics

Panics if the degree is too high for the coefficients to fit into a Vec.

Creates a random polynomial.

Returns the polynomial’s degree; which is the same in both variables.

Returns the polynomial’s value at the point (x, y).

Returns the x-th row, as a univariate polynomial.

Returns the corresponding commitment. That information can be shared publicly.

Generates a non-redacted debug string. This method differs from the Debug implementation in that it does leak the the struct’s internal state.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

A debug statement where the coeff vector has been redacted.

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Zero out this object from memory using Rust intrinsics which ensure the zeroization operation is not “optimized away” by the compiler. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.