Skip to content

Commit

Permalink
remove COLUMNS parameter to set default value
Browse files Browse the repository at this point in the history
  • Loading branch information
querolita committed Oct 31, 2023
1 parent e992956 commit 8f89ae2
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions kimchi/src/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,7 @@ impl BenchmarkCtx {
}

/// Produces a proof
pub fn create_proof(
&self,
) -> (
ProverProof<Vesta, OpeningProof<Vesta>, KIMCHI_COLS>,
Vec<Fp>,
) {
pub fn create_proof(&self) -> (ProverProof<Vesta, OpeningProof<Vesta>>, Vec<Fp>) {
// create witness
let witness: [Vec<Fp>; KIMCHI_COLS] = array::from_fn(|_| vec![1u32.into(); self.num_gates]);

Expand All @@ -102,13 +97,7 @@ impl BenchmarkCtx {
}

#[allow(clippy::type_complexity)]
pub fn batch_verification(
&self,
batch: &[(
ProverProof<Vesta, OpeningProof<Vesta>, KIMCHI_COLS>,
Vec<Fp>,
)],
) {
pub fn batch_verification(&self, batch: &[(ProverProof<Vesta, OpeningProof<Vesta>>, Vec<Fp>)]) {
// verify the proof
let batch: Vec<_> = batch
.iter()
Expand Down

0 comments on commit 8f89ae2

Please sign in to comment.