Skip to content

Commit

Permalink
chore: fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenciak committed Mar 3, 2024
1 parent 7ace5b7 commit 696cf65
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 25 deletions.
5 changes: 1 addition & 4 deletions src/cyclefold/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ use ff::PrimeField;

use crate::{
constants::NUM_CHALLENGE_BITS,
gadgets::{
ecc::AllocatedPoint,
utils::{alloc_constant, le_bits_to_num},
},
gadgets::{alloc_constant, le_bits_to_num, AllocatedPoint},
traits::{commitment::CommitmentTrait, Engine},
Commitment,
};
Expand Down
12 changes: 3 additions & 9 deletions src/cyclefold/gadgets.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
use super::nova_circuit::FoldingData;

use crate::{
gadgets::{
ecc::AllocatedPoint,
r1cs::{AllocatedR1CSInstance, AllocatedRelaxedR1CSInstance},
},
gadgets::{AllocatedPoint, AllocatedR1CSInstance, AllocatedRelaxedR1CSInstance},
traits::{commitment::CommitmentTrait, Engine, ROCircuitTrait},
};

Expand Down Expand Up @@ -64,11 +61,8 @@ pub mod emulated {
use crate::{
constants::{NUM_CHALLENGE_BITS, NUM_FE_IN_EMULATED_POINT},
gadgets::{
nonnative::{bignat::BigNat, util::f_to_nat},
utils::{
alloc_zero, conditionally_select, conditionally_select_allocated_bit,
conditionally_select_bignat, le_bits_to_num,
},
alloc_zero, conditionally_select, conditionally_select_allocated_bit,
conditionally_select_bignat, f_to_nat, le_bits_to_num, BigNat,
},
traits::{Group, ROConstantsCircuit},
RelaxedR1CSInstance,
Expand Down
5 changes: 1 addition & 4 deletions src/cyclefold/nifs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ use ff::Field;
use crate::{
constants::{BN_LIMB_WIDTH, BN_N_LIMBS, NUM_CHALLENGE_BITS, NUM_FE_IN_EMULATED_POINT},
errors::NovaError,
gadgets::{
nonnative::{bignat::nat_to_limbs, util::f_to_nat},
utils::scalar_as_base,
},
gadgets::{f_to_nat, nat_to_limbs, scalar_as_base},
r1cs::{R1CSInstance, R1CSShape, R1CSWitness, RelaxedR1CSInstance, RelaxedR1CSWitness},
traits::{commitment::CommitmentTrait, /*AbsorbInROTrait,*/ Engine, ROConstants, ROTrait},
CommitmentKey, CompressedCommitment,
Expand Down
6 changes: 2 additions & 4 deletions src/cyclefold/nova_circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ use crate::{
/*NUM_FE_WITHOUT_IO_FOR_CRHF,*/ NUM_HASH_BITS,
},
gadgets::{
r1cs::{AllocatedR1CSInstance, AllocatedRelaxedR1CSInstance},
utils::{
alloc_num_equals, alloc_scalar_as_base, alloc_zero, conditionally_select_vec, le_bits_to_num,
},
alloc_num_equals, alloc_scalar_as_base, alloc_zero, conditionally_select_vec, le_bits_to_num,
AllocatedR1CSInstance, AllocatedRelaxedR1CSInstance,
},
r1cs::{R1CSInstance, RelaxedR1CSInstance},
traits::{
Expand Down
2 changes: 1 addition & 1 deletion src/cyclefold/snark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::{
},
cyclefold::circuit::CyclefoldCircuit,
errors::NovaError,
gadgets::utils::scalar_as_base,
gadgets::scalar_as_base,
nifs::NIFS,
r1cs::{
self, CommitmentKeyHint, R1CSInstance, R1CSResult, R1CSWitness, RelaxedR1CSInstance,
Expand Down
7 changes: 4 additions & 3 deletions src/gadgets/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mod ecc;
pub(crate) use ecc::AllocatedPoint;

mod nonnative;
pub(crate) use nonnative::{bignat::nat_to_limbs, util::f_to_nat};
pub(crate) use nonnative::{bignat::nat_to_limbs, bignat::BigNat, util::f_to_nat};

mod r1cs;
pub(crate) use r1cs::{
Expand All @@ -15,6 +15,7 @@ mod utils;
#[cfg(test)]
pub(crate) use utils::alloc_one;
pub(crate) use utils::{
alloc_num_equals, alloc_scalar_as_base, alloc_zero, conditionally_select_vec, le_bits_to_num,
scalar_as_base,
alloc_constant, alloc_num_equals, alloc_scalar_as_base, alloc_zero, conditionally_select,
conditionally_select_allocated_bit, conditionally_select_bignat, conditionally_select_vec,
le_bits_to_num, scalar_as_base,
};

0 comments on commit 696cf65

Please sign in to comment.