EvaluationsProvider

Trait EvaluationsProvider 

Source
pub trait EvaluationsProvider<F: PrimeField>: Debug {
    // Required method
    fn get_lc_eval(&self, lc: &LinearCombination<F>, point: F) -> Result<F>;
}
Expand description

Abstraction that provides evaluations of (linear combinations of) polynomials

Intended to provide a common interface for both the prover and the verifier when constructing linear combinations via AHPForR1CS::construct_linear_combinations.

Required Methods§

Source

fn get_lc_eval(&self, lc: &LinearCombination<F>, point: F) -> Result<F>

Get the evaluation of linear combination lc at point.

Implementations on Foreign Types§

Source§

impl<F, T> EvaluationsProvider<F> for Vec<T>

The EvaluationsProvider used by the prover

Source§

fn get_lc_eval(&self, lc: &LinearCombination<F>, point: F) -> Result<F>

Implementors§

Source§

impl<F: PrimeField> EvaluationsProvider<F> for Evaluations<F>

The EvaluationsProvider used by the verifier