Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Commit cf0b43c

Browse files
author
Mason Liang
committed
fix rebase
1 parent 8de2876 commit cf0b43c

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

aggregator/src/aggregation/blob_data.rs

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,7 @@ impl BlobDataConfig {
721721

722722
let challenge_digest_preimage_rlc_specified = &rows.last().unwrap().preimage_rlc;
723723
let challenge_digest_rlc_specified = &rows.last().unwrap().digest_rlc;
724+
let versioned_hash_rlc = &rows.get(N_ROWS_DIGEST_RLC - 2).unwrap().digest_rlc;
724725

725726
// ensure that on the last row of this section the is_boundary is turned on
726727
// which would enable the keccak table lookup for challenge_digest
@@ -794,6 +795,7 @@ impl BlobDataConfig {
794795
for (i, digest_rlc_specified) in std::iter::once(metadata_digest_rlc_specified)
795796
.chain(chunk_digest_evm_rlcs)
796797
.chain(std::iter::once(challenge_digest_rlc_specified))
798+
.chain(std::iter::once(versioned_hash_rlc))
797799
.enumerate()
798800
{
799801
let digest_rows = rows
@@ -853,16 +855,22 @@ impl BlobDataConfig {
853855
for chunk in chunk_data_digests_bytes.chunks_exact(N_BYTES_U256) {
854856
chunk_data_digests.push(chunk.to_vec());
855857
}
858+
let challenge_digest = assigned_rows
859+
.iter()
860+
.rev()
861+
.take(N_BYTES_U256)
862+
.map(|row| row.byte.clone())
863+
.collect::<Vec<AssignedCell<Fr, Fr>>>();
856864
let export = AssignedBlobDataExport {
857865
num_valid_chunks,
858866
versioned_hash: assigned_rows
859-
.iter()
860-
.rev()
861-
.skip(N_BYTES_U256)
862-
.take(N_BYTES_U256)
863-
.map(|row| row.byte.clone())
864-
.rev()
865-
.collect(),
867+
.iter()
868+
.rev()
869+
.skip(N_BYTES_U256)
870+
.take(N_BYTES_U256)
871+
.map(|row| row.byte.clone())
872+
.rev()
873+
.collect(),
866874
chunk_data_digests,
867875
};
868876

0 commit comments

Comments
 (0)