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

Method sum

poly-commit/src/streaming_kzg/mod.rs:139–142  ·  view source on GitHub ↗
(iter: I)

Source from the content-addressed store, hash-verified

137
138impl<E: Pairing> core::iter::Sum for EvaluationProof<E> {
139 fn sum<I: Iterator<Item = Self>>(iter: I) -> Self {
140 let zero = EvaluationProof(E::G1Affine::zero());
141 iter.fold(zero, |x, y| x + y)
142 }
143}
144
145/// Error type denoting an incorrect evaluation proof.

Callers 2

inner_productFunction · 0.80
batch_checkMethod · 0.80

Calls 1

EvaluationProofClass · 0.85

Tested by

no test coverage detected