Given a polynomial `polynomial` of degree less than `max_degree`, return a commitment to `polynomial`.
(&self, polynomial: &[E::ScalarField])
| 70 | |
| 71 | /// Given a polynomial `polynomial` of degree less than `max_degree`, return a commitment to `polynomial`. |
| 72 | pub fn commit(&self, polynomial: &[E::ScalarField]) -> Commitment<E> { |
| 73 | Commitment(msm::<E>(&self.powers_of_g, polynomial)) |
| 74 | } |
| 75 | |
| 76 | /// Obtain a new preprocessed committer key defined by the indices `indices`. |
| 77 | pub fn index_by(&self, indices: &[usize]) -> Self { |