Skip to content

Commit 23dd21e

Browse files
Add the new parameters to the aggregation mode sdk
1 parent 4fd18e5 commit 23dd21e

File tree

1 file changed

+4
-0
lines changed
  • aggregation_mode/src/backend

1 file changed

+4
-0
lines changed

aggregation_mode/src/backend/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ use config::Config;
2121
use fetcher::{ProofsFetcher, ProofsFetcherError};
2222
use merkle_tree::compute_proofs_merkle_root;
2323
use risc0_ethereum_contracts::encode_seal;
24+
use sp1_sdk::HashableKey;
2425
use std::str::FromStr;
2526
use tracing::{error, info, warn};
2627
use types::{AlignedProofAggregationService, AlignedProofAggregationServiceContract};
@@ -156,11 +157,13 @@ impl ProofAggregator {
156157
) -> Result<TransactionReceipt, AggregatedProofSubmissionError> {
157158
let res = match aggregated_proof {
158159
AlignedProof::SP1(proof) => {
160+
let vk_hash = proof.vk.hash_bytes();
159161
self.proof_aggregation_service
160162
.verifySP1(
161163
blob_versioned_hash.into(),
162164
proof.proof_with_pub_values.public_values.to_vec().into(),
163165
proof.proof_with_pub_values.bytes().into(),
166+
vk_hash.into(),
164167
)
165168
.sidecar(blob)
166169
.send()
@@ -175,6 +178,7 @@ impl ProofAggregator {
175178
blob_versioned_hash.into(),
176179
encoded_seal.into(),
177180
proof.receipt.journal.bytes.into(),
181+
proof.image_id.into(),
178182
)
179183
.sidecar(blob)
180184
.send()

0 commit comments

Comments
 (0)