@@ -34,6 +34,7 @@ impl Display for ZKVMEngine {
3434pub enum ProofAggregationError {
3535 SP1Aggregation ( SP1AggregationError ) ,
3636 Risc0Aggregation ( Risc0AggregationError ) ,
37+ ZiskAggregation ( zisk_aggregator:: AlignedZiskError ) ,
3738 PublicInputsDeserialization ,
3839}
3940
@@ -184,22 +185,19 @@ impl ZKVMEngine {
184185
185186 let mut agg_proofs: Vec < ( ZiskStarkProof , Vec < [ u8 ; 32 ] > ) > = vec ! [ ] ;
186187 for ( i, chunk) in chunks. enumerate ( ) {
187- let leaves_commitment = chunk
188- . iter ( )
189- . map ( |e| e. hash_image_id_and_public_inputs ( ) )
190- . collect ( ) ;
188+ let leaves_commitment = chunk. iter ( ) . map ( |e| e. hash_proof ( ) ) . collect ( ) ;
191189 let agg_proof = zisk_aggregator:: run_user_proofs_aggregator ( chunk)
192- . map_err ( ProofAggregationError :: Risc0Aggregation ) ?;
190+ . map_err ( ProofAggregationError :: ZiskAggregation ) ?;
193191 agg_proofs. push ( ( agg_proof, leaves_commitment) ) ;
194192
195193 info ! ( "Chunk number {} has been aggregated" , i) ;
196194 }
197195
198196 info ! ( "All chunks have been aggregated, performing last aggregation..." ) ;
199197 let agg_proof = zisk_aggregator:: run_chunk_aggregator ( & agg_proofs)
200- . map_err ( ProofAggregationError :: Risc0Aggregation ) ?;
198+ . map_err ( ProofAggregationError :: ZiskAggregation ) ?;
201199
202- let public_input_bytes = agg_proof. public_values ;
200+ let public_input_bytes = agg_proof. public_values . clone ( ) ;
203201 let merkle_root: [ u8 ; 32 ] = public_input_bytes
204202 . try_into ( )
205203 . map_err ( |_| ProofAggregationError :: PublicInputsDeserialization ) ?;
0 commit comments