mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-05 07:13:08 +00:00
Made visibilities outside of crate to allow for forking partial witness gen outside of crate
This commit is contained in:
parent
86fb6aa065
commit
a184f09bf1
@ -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> {
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user