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

Commit 4c11fb7

Browse files
committed
[chore] fix cargo fmt
1 parent 3837e4c commit 4c11fb7

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed

aggregator/src/proof_aggregation/config.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ use zkevm_circuits::{
1919
use crate::param::{ConfigParams, BITS, LIMBS};
2020

2121
#[derive(Debug, Clone)]
22-
/// Configurations for aggregation circuit
23-
/// This config is hard coded for BN256 curve
22+
#[rustfmt::skip]
23+
/// Configurations for aggregation circuit.
24+
/// This config is hard coded for BN256 curve.
2425
pub struct AggregationConfig {
2526
/// Non-native field chip configurations
2627
pub base_field_config: FpConfig<Fr, Fq>,

aggregator/src/proof_aggregation/public_input_aggregation.rs

+7-13
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,16 @@
1111
//! Those 4 hashes are obtained from the caller.
1212
//!
1313
//! A chunk's public input hash is then derived from the above 4 attributes via
14-
//! - chunk_pi_hash := keccak(chain_id
15-
//! || prev_state_root
16-
//! || post_state_root
17-
//! || withdraw_root
18-
//! || chunk_data_hash)
14+
//!
15+
//! - chunk_pi_hash := keccak(chain_id || prev_state_root || post_state_root || withdraw_root ||
16+
//! chunk_data_hash)
1917
//!
2018
//! A batch is a list of continuous chunks. It consists of 2 hashes
21-
//! - batch_data_hash := keccak(chunk_0.data_hash
22-
//! || ...
23-
//! || chunk_k-1.data_hash)
19+
//!
20+
//! - batch_data_hash := keccak(chunk_0.data_hash || ... || chunk_k-1.data_hash)
2421
//!
25-
//! - batch_pi_hash := keccak(chain_id
26-
//! || chunk_0.prev_state_root
27-
//! || chunk_k-1.post_state_root
28-
//! || chunk_k-1.withdraw_root
29-
//! || batch_data_hash)
22+
//! - batch_pi_hash := keccak(chain_id || chunk_0.prev_state_root || chunk_k-1.post_state_root ||
23+
//! chunk_k-1.withdraw_root || batch_data_hash)
3024
//!
3125
//! Note that chain_id is used for all public input hashes. But not for any data hashes.
3226
//!

0 commit comments

Comments
 (0)