Skip to content

Commit

Permalink
fix: adapt to arecibo changes
Browse files Browse the repository at this point in the history
  • Loading branch information
huitseeker committed Jan 4, 2024
1 parent bc13609 commit 5387936
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ clap = "4.3.17"
ff = "0.13"
metrics = "0.21.1"
neptune = { git = "https://github.com/lurk-lab/neptune", branch = "dev", features = ["abomonation"] }
nova = { git = "https://github.com/lurk-lab/arecibo", branch = "dev", package = "arecibo" }
nova = { git = "https://github.com/huitseeker/arecibo", branch = "easy_supernova_feedback", package = "arecibo" }
once_cell = "1.18.0"
pairing = { version = "0.23" }
pasta_curves = { git = "https://github.com/lurk-lab/pasta_curves", branch = "dev" }
Expand Down
4 changes: 2 additions & 2 deletions src/cli/lurk_proof.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use ::nova::{
supernova::NonUniformCircuit,
traits::{circuit_supernova::StepCircuit as SuperStepCircuit, Engine},
supernova::{NonUniformCircuit, StepCircuit as SuperStepCircuit},
traits::Engine,
};
use abomonation::Abomonation;
use anyhow::{bail, Result};
Expand Down
4 changes: 1 addition & 3 deletions src/lem/multiframe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -871,9 +871,7 @@ impl<'a, F: LurkField, C: Coprocessor<F>> nova::traits::circuit::StepCircuit<F>
}
}

impl<'a, F: LurkField, C: Coprocessor<F>> nova::traits::circuit_supernova::StepCircuit<F>
for MultiFrame<'a, F, C>
{
impl<'a, F: LurkField, C: Coprocessor<F>> nova::supernova::StepCircuit<F> for MultiFrame<'a, F, C> {
fn arity(&self) -> usize {
2 * self.lurk_step.input_params.len()
}
Expand Down
4 changes: 2 additions & 2 deletions src/proof/nova.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use nova::{
snark::RelaxedR1CSSNARKTrait,
Engine,
},
CircuitShape, CompressedSNARK, ProverKey, RecursiveSNARK, VerifierKey,
CompressedSNARK, ProverKey, R1CSWithArity, RecursiveSNARK, VerifierKey,
};
use pasta_curves::pallas;
use serde::{Deserialize, Serialize};
Expand Down Expand Up @@ -102,7 +102,7 @@ pub type C1LEM<'a, F, C> = crate::lem::multiframe::MultiFrame<'a, F, C>;
pub type C2<F> = TrivialCircuit<<E2<F> as Engine>::Scalar>;

/// Type alias for Nova Circuit Parameters with the curve cycle types defined above.
pub type NovaCircuitShape<F> = CircuitShape<E1<F>>;
pub type NovaCircuitShape<F> = R1CSWithArity<E1<F>>;

/// Type alias for Nova Public Parameters with the curve cycle types defined above.
pub type NovaPublicParams<F, C1> = nova::PublicParams<E1<F>, E2<F>, C1, C2<F>>;
Expand Down
2 changes: 1 addition & 1 deletion src/proof/supernova.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ use nova::{
error::SuperNovaError,
snark::{CompressedSNARK, ProverKey, VerifierKey},
AuxParams, CircuitDigests, NonUniformCircuit, RecursiveSNARK,
StepCircuit as SuperStepCircuit, TrivialSecondaryCircuit,
},
traits::{
circuit_supernova::{StepCircuit as SuperStepCircuit, TrivialSecondaryCircuit},
snark::{BatchedRelaxedR1CSSNARKTrait, RelaxedR1CSSNARKTrait},
Engine,
},
Expand Down
4 changes: 2 additions & 2 deletions src/public_parameters/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ use std::{

use ::nova::{
constants::NUM_HASH_BITS,
supernova::NonUniformCircuit,
traits::{circuit_supernova::StepCircuit as SuperStepCircuit, Engine},
supernova::{NonUniformCircuit, StepCircuit as SuperStepCircuit},
traits::Engine,
};
use abomonation::Abomonation;
use camino::Utf8Path;
Expand Down
2 changes: 1 addition & 1 deletion src/public_parameters/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ where

/// Attempts to extract abomonated public parameters.
use ::nova::supernova::NonUniformCircuit;
use ::nova::traits::circuit_supernova::StepCircuit as SuperStepCircuit;
use ::nova::supernova::StepCircuit as SuperStepCircuit;
use supernova::C2;
pub fn supernova_public_params<
'a,
Expand Down

0 comments on commit 5387936

Please sign in to comment.