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
Copy file name to clipboardExpand all lines: noir-projects/noir-protocol-circuits/crates/rollup-lib/src/abis/root_rollup_public_inputs.nr
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,12 @@ use types::{
5
5
};
6
6
7
7
pubstructRootRollupPublicInputs {
8
-
// Snapshot of archive tree before/after this rollup has been processed
8
+
// Root of archive tree before/after this rollup has been processed
9
+
// We don't submit the nextAvailableLeafIndex to L1, it's validated by the circuits themselves:
10
+
// During an epoch, we assert that the previous archive is the new archive from the next rollup merged in.
11
+
// However, to validate the very first previous archive of an epoch, the validation is more succinct:
12
+
// - If you try to set a higher nextAvailableLeafIndex (skip), you won't be able to provide a valid preimage to `validate_previous_block_header_in_archive`
13
+
// - If you try to set a lower nextAvailableLeafIndex (overwrite), you'll fail the zero leaf check in the tree insertion code
Copy file name to clipboardExpand all lines: noir-projects/noir-protocol-circuits/crates/rollup-lib/src/checkpoint_merge/utils/merge_checkpoint_rollups.nr
0 commit comments