Skip to content

Commit d7bf346

Browse files
committed
adapt after rebasing the branch to main latest changes
1 parent 5cba622 commit d7bf346

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

src/backends/plonky2/mainpod/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ pub use statement::*;
1313

1414
use crate::{
1515
backends::plonky2::{
16-
basetypes::{Proof, ProofWithPublicInputs, VerifierOnlyCircuitData, D, DEFAULT_VD_TREE},
17-
circuits::mainpod::{
18-
CustomPredicateVerification, MainPodVerifyInput, MainPodVerifyTarget, NUM_PUBLIC_INPUTS,
19-
},
16+
basetypes::{Proof, ProofWithPublicInputs, VerifierOnlyCircuitData, D},
17+
circuits::mainpod::{CustomPredicateVerification, MainPodVerifyInput, MainPodVerifyTarget},
2018
deserialize_proof,
2119
emptypod::EmptyPod,
2220
error::{Error, Result},

src/backends/plonky2/mock/mainpod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ use crate::{
1919
},
2020
middleware::{
2121
self, hash_str, AnchoredKey, DynError, Hash, MainPodInputs, NativePredicate, Params, Pod,
22-
PodId, PodProver, PodType, Predicate, RecursivePod, StatementArg, VDSet, VDTree, KEY_TYPE,
23-
SELF,
22+
PodId, PodProver, PodType, Predicate, RecursivePod, StatementArg, VDSet, KEY_TYPE, SELF,
2423
},
2524
};
2625

src/frontend/serialization.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ mod tests {
112112
middleware::{
113113
self,
114114
containers::{Array, Dictionary, Set},
115-
Params, RawValue, TypedValue, DEFAULT_VD_SET, DEFAULT_VD_TREE,
115+
Params, RawValue, TypedValue, DEFAULT_VD_SET,
116116
},
117117
};
118118

src/lang/processor.rs

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -659,17 +659,22 @@ fn process_literal_value(lit_val_pair: &Pair<Rule>) -> Result<Value, ProcessorEr
659659
.into_inner()
660660
.map(|elem_pair| process_literal_value(&elem_pair))
661661
.collect();
662-
let middleware_array = middleware::containers::Array::new(elements?)
663-
.map_err(|e| ProcessorError::Internal(format!("Failed to create Array: {}", e)))?;
662+
let middleware_array =
663+
middleware::containers::Array::new(crate::constants::MAX_DEPTH, elements?)
664+
.map_err(|e| {
665+
ProcessorError::Internal(format!("Failed to create Array: {}", e))
666+
})?;
664667
Ok(Value::from(middleware_array))
665668
}
666669
Rule::literal_set => {
667670
let elements: Result<HashSet<Value>, ProcessorError> = inner_lit
668671
.into_inner()
669672
.map(|elem_pair| process_literal_value(&elem_pair))
670673
.collect();
671-
let middleware_set = middleware::containers::Set::new(elements?)
672-
.map_err(|e| ProcessorError::Internal(format!("Failed to create Set: {}", e)))?;
674+
let middleware_set =
675+
middleware::containers::Set::new(crate::constants::MAX_DEPTH, elements?).map_err(
676+
|e| ProcessorError::Internal(format!("Failed to create Set: {}", e)),
677+
)?;
673678
Ok(Value::from(middleware_set))
674679
}
675680
Rule::literal_dict => {
@@ -684,9 +689,11 @@ fn process_literal_value(lit_val_pair: &Pair<Rule>) -> Result<Value, ProcessorEr
684689
Ok((Key::new(key_str), val))
685690
})
686691
.collect();
687-
let middleware_dict = middleware::containers::Dictionary::new(pairs?).map_err(|e| {
688-
ProcessorError::Internal(format!("Failed to create Dictionary: {}", e))
689-
})?;
692+
let middleware_dict =
693+
middleware::containers::Dictionary::new(crate::constants::MAX_DEPTH, pairs?)
694+
.map_err(|e| {
695+
ProcessorError::Internal(format!("Failed to create Dictionary: {}", e))
696+
})?;
690697
Ok(Value::from(middleware_dict))
691698
}
692699
_ => unreachable!("Unexpected rule: {:?}", inner_lit.as_rule()),

0 commit comments

Comments
 (0)