You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let id = builder.hash_n_to_hash_no_pad::<PoseidonHash>(pub_statements_flattened);
263
285
264
-
// 3. TODO check that all `input_statements` of type `ValueOf` with origin=SELF have unique
265
-
// keys (no duplicates)
286
+
// 3. TODO check that all `input_statements` of type `ValueOf` with origin=SELF have unique keys (no duplicates). Maybe we can do this via the NewEntry operation (check that the key doesn't exist in a previous statement with ID=SELF)
266
287
267
288
// 4. Verify type
268
289
let type_statement = &pub_statements[0];
@@ -352,6 +373,8 @@ impl MainPodVerifyCircuit {
352
373
mod tests {
353
374
usesuper::*;
354
375
usecrate::backends::plonky2::basetypes::C;
376
+
usecrate::backends::plonky2::mock_main;
377
+
usecrate::middleware::OperationType;
355
378
use plonky2::plonk::{circuit_builder::CircuitBuilder, circuit_data::CircuitConfig};
356
379
357
380
#[test]
@@ -384,9 +407,9 @@ mod tests {
384
407
}
385
408
386
409
fnoperation_verify(
387
-
st:Statement,
388
-
op:Operation,
389
-
prev_statements:Vec<Statement>,
410
+
st:mock_main::Statement,
411
+
op:mock_main::Operation,
412
+
prev_statements:Vec<mock_main::Statement>,
390
413
) -> Result<()>{
391
414
let params = Params::default();
392
415
@@ -429,9 +452,9 @@ mod tests {
429
452
#[test]
430
453
fntest_operation_verify() -> Result<()>{
431
454
// None
432
-
let st= Statement::None;
433
-
let op = Operation::None;
434
-
let prev_statements = vec![Statement::None];
455
+
let st: mock_main::Statement= Statement::None.into();
456
+
let op = mock_main::Operation(OperationType::Native(NativeOperation::None),vec![]);
457
+
let prev_statements = vec![Statement::None.into()];
0 commit comments