diff --git a/plonky2/src/gates/exponentiation.rs b/plonky2/src/gates/exponentiation.rs index db12d697..aa977308 100644 --- a/plonky2/src/gates/exponentiation.rs +++ b/plonky2/src/gates/exponentiation.rs @@ -23,7 +23,7 @@ use crate::plonk::vars::{ /// A gate for raising a value to a power. #[derive(Clone, Debug)] -pub(crate) struct ExponentiationGate, const D: usize> { +pub struct ExponentiationGate, const D: usize> { pub num_power_bits: usize, pub _phantom: PhantomData, } diff --git a/plonky2/src/gates/interpolation.rs b/plonky2/src/gates/interpolation.rs index c98f7fe3..1983e5aa 100644 --- a/plonky2/src/gates/interpolation.rs +++ b/plonky2/src/gates/interpolation.rs @@ -22,7 +22,7 @@ use crate::plonk::vars::{EvaluationTargets, EvaluationVars, EvaluationVarsBase}; /// Interpolation gate with constraints of degree at most `1<, const D: usize> { +pub struct HighDegreeInterpolationGate, const D: usize> { pub subgroup_bits: usize, _phantom: PhantomData, } diff --git a/plonky2/src/gates/low_degree_interpolation.rs b/plonky2/src/gates/low_degree_interpolation.rs index 4852792a..217f4f0a 100644 --- a/plonky2/src/gates/low_degree_interpolation.rs +++ b/plonky2/src/gates/low_degree_interpolation.rs @@ -23,7 +23,7 @@ use crate::plonk::vars::{EvaluationTargets, EvaluationVars, EvaluationVarsBase}; /// Interpolation gate with constraints of degree 2. /// `eval_unfiltered_recursively` uses more gates than `HighDegreeInterpolationGate`. #[derive(Copy, Clone, Debug)] -pub(crate) struct LowDegreeInterpolationGate, const D: usize> { +pub struct LowDegreeInterpolationGate, const D: usize> { pub subgroup_bits: usize, _phantom: PhantomData, } diff --git a/plonky2/src/gates/mod.rs b/plonky2/src/gates/mod.rs index d02f2978..786ba12c 100644 --- a/plonky2/src/gates/mod.rs +++ b/plonky2/src/gates/mod.rs @@ -14,8 +14,8 @@ pub mod multiplication_extension; pub mod noop; pub mod packed_util; pub mod poseidon; -pub(crate) mod poseidon_mds; -pub(crate) mod public_input; +pub mod poseidon_mds; +pub mod public_input; pub mod random_access; pub mod reducing; pub mod reducing_extension; diff --git a/plonky2/src/gates/random_access.rs b/plonky2/src/gates/random_access.rs index b1f1d529..2df392bc 100644 --- a/plonky2/src/gates/random_access.rs +++ b/plonky2/src/gates/random_access.rs @@ -23,7 +23,7 @@ use crate::plonk::vars::{ /// A gate for checking that a particular element of a list matches a given value. #[derive(Copy, Clone, Debug)] -pub(crate) struct RandomAccessGate, const D: usize> { +pub struct RandomAccessGate, const D: usize> { pub bits: usize, pub num_copies: usize, pub num_extra_constants: usize,