diff --git a/src/circuit.rs b/src/circuit.rs index ef7d2bbbe..01d1bcde1 100644 --- a/src/circuit.rs +++ b/src/circuit.rs @@ -7,11 +7,11 @@ use crate::{ constants::{NIO_NOVA_FOLD, NUM_FE_WITHOUT_IO_FOR_CRHF, NUM_HASH_BITS}, gadgets::{ - ecc::AllocatedPoint, r1cs::{AllocatedR1CSInstance, AllocatedRelaxedR1CSInstance}, utils::{ alloc_num_equals, alloc_scalar_as_base, alloc_zero, conditionally_select_vec, le_bits_to_num, }, + AllocatedPoint, }, r1cs::{R1CSInstance, RelaxedR1CSInstance}, traits::{ diff --git a/src/gadgets/ecc.rs b/src/gadgets/ecc.rs index cc282b6e1..97389cb2b 100644 --- a/src/gadgets/ecc.rs +++ b/src/gadgets/ecc.rs @@ -113,6 +113,7 @@ impl AllocatedPoint { } /// Returns coordinates associated with the point. + #[allow(unused)] pub const fn get_coordinates( &self, ) -> ( @@ -596,11 +597,13 @@ pub struct AllocatedPointNonInfinity { impl AllocatedPointNonInfinity { /// Creates a new `AllocatedPointNonInfinity` from the specified coordinates + #[allow(unused)] pub const fn new(x: AllocatedNum, y: AllocatedNum) -> Self { Self { x, y } } /// Allocates a new point on the curve using coordinates provided by `coords`. + #[allow(unused)] pub fn alloc>( mut cs: CS, coords: Option<(G::Base, G::Base)>, @@ -636,6 +639,7 @@ impl AllocatedPointNonInfinity { } /// Returns coordinates associated with the point. + #[allow(unused)] pub const fn get_coordinates(&self) -> (&AllocatedNum, &AllocatedNum) { (&self.x, &self.y) } diff --git a/src/gadgets/mod.rs b/src/gadgets/mod.rs index 065ebb6f5..62bd5cbde 100644 --- a/src/gadgets/mod.rs +++ b/src/gadgets/mod.rs @@ -1,6 +1,9 @@ //! This module implements various gadgets necessary for Nova and applications built with Nova. -pub mod ecc; +mod ecc; +pub(crate) use ecc::AllocatedPoint; + mod nonnative; -pub use nonnative::{bignat::nat_to_limbs, util::f_to_nat}; +pub(crate) use nonnative::{bignat::nat_to_limbs, util::f_to_nat}; + pub(crate) mod r1cs; pub(crate) mod utils; diff --git a/src/supernova/circuit.rs b/src/supernova/circuit.rs index b9a33cda6..f7da0870d 100644 --- a/src/supernova/circuit.rs +++ b/src/supernova/circuit.rs @@ -14,7 +14,6 @@ use crate::{ constants::{NIO_NOVA_FOLD, NUM_HASH_BITS}, gadgets::{ - ecc::AllocatedPoint, r1cs::{ conditionally_select_alloc_relaxed_r1cs, conditionally_select_vec_allocated_relaxed_r1cs_instance, AllocatedR1CSInstance, @@ -23,6 +22,7 @@ use crate::{ utils::{ alloc_num_equals, alloc_scalar_as_base, alloc_zero, conditionally_select_vec, le_bits_to_num, }, + AllocatedPoint, }, r1cs::{R1CSInstance, RelaxedR1CSInstance}, traits::{commitment::CommitmentTrait, Engine, ROCircuitTrait, ROConstantsCircuit},