Trait vsss_rs::Polynomial
source · pub trait Polynomial<F: PrimeField> {
// Required methods
fn create(size_hint: usize) -> Self;
fn coefficients(&self) -> &[F];
fn coefficients_mut(&mut self) -> &mut [F];
// Provided methods
fn fill(
&mut self,
intercept: F,
rng: impl RngCore + CryptoRng,
length: usize
) -> VsssResult<()> { ... }
fn evaluate(&self, x: F, threshold: usize) -> F { ... }
}
Expand description
The polynomial used for generating the shares
Required Methods§
sourcefn coefficients(&self) -> &[F]
fn coefficients(&self) -> &[F]
Return the coefficients of the polynomial
sourcefn coefficients_mut(&mut self) -> &mut [F]
fn coefficients_mut(&mut self) -> &mut [F]
Return the mutable coefficients of the polynomial
Provided Methods§
Object Safety§
This trait is not object safe.