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

Method commit

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

Given a polynomial `polynomial` of degree less than `max_degree`, return a commitment to `polynomial`.

(&self, polynomial: &[E::ScalarField])

Source from the content-addressed store, hash-verified

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 {

Callers 5

batch_commitMethod · 0.45
open_multi_pointsMethod · 0.45
test_trivial_commitmentFunction · 0.45
test_commitmentFunction · 0.45

Calls 1

CommitmentClass · 0.70

Tested by 3

test_trivial_commitmentFunction · 0.36
test_commitmentFunction · 0.36