Skip to content

Commit

Permalink
Merge branch 'main' into feat/msm
Browse files Browse the repository at this point in the history
  • Loading branch information
lonerapier committed Aug 20, 2023
2 parents 909dea9 + 5bcad03 commit e67c660
Show file tree
Hide file tree
Showing 22 changed files with 753 additions and 535 deletions.
4 changes: 0 additions & 4 deletions barustenberg/src/ecc/curves/bn254_scalar_multiplication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ use ark_ff::{Field, Zero};

use crate::srs::io::read_transcript_g1;

pub(crate) type G1AffineGroup = <ark_ec::short_weierstrass::Affine<
<ark_bn254::Config as ark_ec::bn::BnConfig>::G1Config,
> as ark_ec::AffineRepr>::Group;

use anyhow::Result;

#[inline]
Expand Down
2 changes: 0 additions & 2 deletions barustenberg/src/ecc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ use ark_ff::{FftField, Field};
pub(crate) mod curves;
pub(crate) mod scalar_multiplication;

pub(crate) struct MillerLines;

#[inline]
pub(crate) fn conditionally_subtract_from_double_modulus<Fr: Field + FftField>(
_this: &Fr,
Expand Down
6 changes: 3 additions & 3 deletions barustenberg/src/plonk/composer/composer_base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ pub(crate) enum WireType {
pub(crate) enum ComposerType {
#[default]
Standard,
Turbo,
Plookup,
StandardHonk,
_Turbo,
_Plookup,
_StandardHonk,
}

impl ComposerType {
Expand Down
9 changes: 5 additions & 4 deletions barustenberg/src/plonk/composer/standard_composer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ impl<RSF: ReferenceStringFactory> StandardComposer<RSF> {
/// It first computes the verification key, then constructs a `Verifier`
/// using the computed key and the manifest of public inputs.
/// Finally, it adds a `KateCommitmentScheme` to the verifier and returns it.
fn create_verifier(&mut self) -> Result<Verifier<Keccak256, StandardSettings<Keccak256>>> {
fn create_verifier(&mut self) -> Result<Verifier<Keccak256>> {
let cbd = self.cbd.clone();
let cbd = cbd.read().unwrap();

Expand All @@ -1113,7 +1113,8 @@ impl<RSF: ReferenceStringFactory> StandardComposer<RSF> {
self.create_manifest(cbd.public_inputs.len()),
);

output_state.commitment_scheme = Box::new(KateCommitmentScheme::new());
output_state.commitment_scheme =
Box::new(KateCommitmentScheme::new(output_state.settings.clone()));

Ok(output_state)
}
Expand All @@ -1129,7 +1130,7 @@ impl<RSF: ReferenceStringFactory> StandardComposer<RSF> {
/// # Returns
///
/// * Returns an initialized `Prover`.
fn create_prover(&mut self) -> Prover<Keccak256, StandardSettings<Keccak256>> {
fn create_prover(&mut self) -> Prover<Keccak256> {
self.compute_proving_key();
self.compute_witness();

Expand All @@ -1154,7 +1155,7 @@ impl<RSF: ReferenceStringFactory> StandardComposer<RSF> {
.transition_widgets
.push(Box::new(arithmetic_widget));

output_state.commitment_scheme = KateCommitmentScheme::new();
output_state.commitment_scheme = KateCommitmentScheme::new(output_state.settings.clone());

output_state
}
Expand Down
Loading

0 comments on commit e67c660

Please sign in to comment.