MCPcopy Create free account
hub / github.com/ddkang/zkml / Commit

Interface Commit

src/commitments/commit.rs:7–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5use crate::{gadgets::gadget::GadgetConfig, layers::layer::CellRc};
6
7pub trait Commit<F: PrimeField> {
8 fn commit(
9 &self,
10 layouter: impl Layouter<F>,
11 gadget_config: Rc<GadgetConfig>,
12 constants: &HashMap<i64, CellRc<F>>,
13 values: &Vec<CellRc<F>>,
14 blinding: CellRc<F>,
15 ) -> Result<Vec<CellRc<F>>, Error>;
16}

Callers

nothing calls this directly

Implementers 1

poseidon_commit.rssrc/commitments/poseidon_commit.rs

Calls

no outgoing calls

Tested by

no test coverage detected