MCPcopy Create free account
hub / github.com/arkworks-rs/poly-commit / batch_commit

Method batch_commit

poly-commit/src/streaming_kzg/time.rs:90–99  ·  view source on GitHub ↗

Given an iterator over `polynomials`, expressed as vectors of coefficients, return a vector of commitmetns to all of them.

(&self, polynomials: J)

Source from the content-addressed store, hash-verified

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`,

Callers 1

Calls 1

commitMethod · 0.45

Tested by 1