This repository was archived by the owner on Apr 18, 2025. It is now read-only.
File tree 2 files changed +10
-15
lines changed
aggregator/src/proof_aggregation
2 files changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,9 @@ use zkevm_circuits::{
19
19
use crate :: param:: { ConfigParams , BITS , LIMBS } ;
20
20
21
21
#[ 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.
24
25
pub struct AggregationConfig {
25
26
/// Non-native field chip configurations
26
27
pub base_field_config : FpConfig < Fr , Fq > ,
Original file line number Diff line number Diff line change 11
11
//! Those 4 hashes are obtained from the caller.
12
12
//!
13
13
//! 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)
19
17
//!
20
18
//! 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)
24
21
//!
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)
30
24
//!
31
25
//! Note that chain_id is used for all public input hashes. But not for any data hashes.
32
26
//!
You can’t perform that action at this time.
0 commit comments