Given an iterator over `polynomials`, expressed as vectors of coefficients, return a vector of commitmetns to all of them.
(&self, polynomials: J)
| 88 | |
| 89 | /// Given an iterator over `polynomials`, expressed as vectors of coefficients, return a vector of commitmetns to all of them. |
| 90 | pub fn batch_commit<J>(&self, polynomials: J) -> Vec<Commitment<E>> |
| 91 | where |
| 92 | J: IntoIterator, |
| 93 | J::Item: Borrow<Vec<E::ScalarField>>, |
| 94 | { |
| 95 | polynomials |
| 96 | .into_iter() |
| 97 | .map(|p| self.commit(p.borrow())) |
| 98 | .collect::<Vec<_>>() |
| 99 | } |
| 100 | |
| 101 | /// Given a polynomial `polynomial` and an evaluation point `evaluation_point`, |
| 102 | /// return the evaluation of `polynomial in `evaluation_point`, |