From a184f09bf14eb84f6fddb231bbc1a31ca63cc18a Mon Sep 17 00:00:00 2001 From: Uma Roy Date: Thu, 7 Sep 2023 21:29:21 -0700 Subject: [PATCH] Made visibilities outside of crate to allow for forking partial witness gen outside of crate --- plonky2/src/iop/generator.rs | 2 +- plonky2/src/iop/witness.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plonky2/src/iop/generator.rs b/plonky2/src/iop/generator.rs index 478c5ff5..4f3bc791 100644 --- a/plonky2/src/iop/generator.rs +++ b/plonky2/src/iop/generator.rs @@ -148,7 +148,7 @@ impl, const D: usize> Debug for WitnessGeneratorRef /// Values generated by a generator invocation. #[derive(Debug)] pub struct GeneratedValues { - pub(crate) target_values: Vec<(Target, F)>, + pub target_values: Vec<(Target, F)>, } impl From> for GeneratedValues { diff --git a/plonky2/src/iop/witness.rs b/plonky2/src/iop/witness.rs index 6ad690d0..d5b8dd04 100644 --- a/plonky2/src/iop/witness.rs +++ b/plonky2/src/iop/witness.rs @@ -265,7 +265,7 @@ impl MatrixWitness { #[derive(Clone, Debug, Default)] pub struct PartialWitness { - pub(crate) target_values: HashMap, + pub target_values: HashMap, } impl PartialWitness { @@ -317,7 +317,7 @@ impl<'a, F: Field> PartitionWitness<'a, F> { /// Set a `Target`. On success, returns the representative index of the newly-set target. If the /// target was already set, returns `None`. - pub(crate) fn set_target_returning_rep(&mut self, target: Target, value: F) -> Option { + pub fn set_target_returning_rep(&mut self, target: Target, value: F) -> Option { let rep_index = self.representative_map[self.target_index(target)]; let rep_value = &mut self.values[rep_index]; if let Some(old_value) = *rep_value {