Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions prover/bin/shadow-prove/src/shadow_rollup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,12 @@ where
chain_id: u64,
batch_header: &Bytes,
) -> Result<B256, anyhow::Error> {
// `version` is read only for logging here. Unlike the V2/non-V2 split in `lib.rs`
// (where the prover dispatches different blob-decoding paths), the public-input
// formula is uniform across versions: offset 57 holds the blob input field
// (versioned hash for V0/V1, aggregated hash for V2), and the on-chain verifier
// uses the same layout. Versioned routing happens earlier via the `batch_version`
// request parameter; nothing in this function needs to branch on it.
let version = batch_header.first().copied().unwrap_or(0);

let prev_state_root: &[u8] = batch_header.get(89..121).unwrap_or_default();
Expand Down
Loading