Made visibilities outside of crate to allow for forking partial witness gen outside of crate

This commit is contained in:
Uma Roy 2023-09-07 21:29:21 -07:00
parent 86fb6aa065
commit a184f09bf1
2 changed files with 3 additions and 3 deletions

View File

@ -148,7 +148,7 @@ impl<F: RichField + Extendable<D>, const D: usize> Debug for WitnessGeneratorRef
/// Values generated by a generator invocation.
#[derive(Debug)]
pub struct GeneratedValues<F: Field> {
pub(crate) target_values: Vec<(Target, F)>,
pub target_values: Vec<(Target, F)>,
}
impl<F: Field> From<Vec<(Target, F)>> for GeneratedValues<F> {

View File

@ -265,7 +265,7 @@ impl<F: Field> MatrixWitness<F> {
#[derive(Clone, Debug, Default)]
pub struct PartialWitness<F: Field> {
pub(crate) target_values: HashMap<Target, F>,
pub target_values: HashMap<Target, F>,
}
impl<F: Field> PartialWitness<F> {
@ -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<usize> {
pub fn set_target_returning_rep(&mut self, target: Target, value: F) -> Option<usize> {
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 {