diff --git a/src/plonk.rs b/src/plonk.rs index 4d67c7d..a644f7e 100644 --- a/src/plonk.rs +++ b/src/plonk.rs @@ -93,20 +93,20 @@ impl VerifyingKey { } #[derive(Clone, Copy, Debug)] -pub(crate) struct Beta; -pub(crate) type ChallengeBeta = ChallengeScalar; +struct Beta; +type ChallengeBeta = ChallengeScalar; #[derive(Clone, Copy, Debug)] -pub(crate) struct Gamma; -pub(crate) type ChallengeGamma = ChallengeScalar; +struct Gamma; +type ChallengeGamma = ChallengeScalar; #[derive(Clone, Copy, Debug)] -pub(crate) struct Y; -pub(crate) type ChallengeY = ChallengeScalar; +struct Y; +type ChallengeY = ChallengeScalar; #[derive(Clone, Copy, Debug)] -pub(crate) struct X; -pub(crate) type ChallengeX = ChallengeScalar; +struct X; +type ChallengeX = ChallengeScalar; #[test] fn test_proving() { diff --git a/src/plonk/permutation/prover.rs b/src/plonk/permutation/prover.rs index b0ce871..d975ccc 100644 --- a/src/plonk/permutation/prover.rs +++ b/src/plonk/permutation/prover.rs @@ -36,7 +36,11 @@ pub(crate) struct Evaluated { } impl Argument { - pub(crate) fn commit, HScalar: Hasher>( + pub(in crate::plonk) fn commit< + C: CurveAffine, + HBase: Hasher, + HScalar: Hasher, + >( params: &Params, pk: &ProvingKey, advice: &[Polynomial], @@ -181,7 +185,7 @@ impl Argument { } impl Committed { - pub(crate) fn construct<'a>( + pub(in crate::plonk) fn construct<'a>( self, pk: &'a ProvingKey, advice_cosets: &'a [Polynomial], @@ -295,7 +299,7 @@ impl super::ProvingKey { } impl Constructed { - pub(crate) fn evaluate, HScalar: Hasher>( + pub(in crate::plonk) fn evaluate, HScalar: Hasher>( self, pk: &ProvingKey, x: ChallengeX, @@ -336,7 +340,7 @@ impl Constructed { } impl Evaluated { - pub fn open<'a>( + pub(in crate::plonk) fn open<'a>( &'a self, pk: &'a ProvingKey, x: ChallengeX, diff --git a/src/plonk/permutation/verifier.rs b/src/plonk/permutation/verifier.rs index 63fb439..cea9d69 100644 --- a/src/plonk/permutation/verifier.rs +++ b/src/plonk/permutation/verifier.rs @@ -48,7 +48,7 @@ impl Proof { Ok(()) } - pub(crate) fn expressions<'a>( + pub(in crate::plonk) fn expressions<'a>( &'a self, vk: &'a VerifyingKey, advice_evals: &'a [C::Scalar], @@ -109,7 +109,7 @@ impl Proof { .chain(self.permutation_evals.iter().flat_map(|evals| evals.iter())) } - pub(crate) fn queries<'a>( + pub(in crate::plonk) fn queries<'a>( &'a self, vk: &'a VerifyingKey, x: ChallengeX,