Skip to content

Commit 66b1095

Browse files
committed
fmt
Signed-off-by: noelwei <[email protected]>
1 parent 69ff09a commit 66b1095

File tree

12 files changed

+19
-20
lines changed

12 files changed

+19
-20
lines changed

common/types-rs/aggregation/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,4 @@ fn exec_kernel(_pi_ptr: *const u32) {
108108
pub trait ProofCarryingWitness {
109109
/// Get the root proofs from the witness.
110110
fn get_proofs(&self) -> Vec<AggregationInput>;
111-
}
111+
}

common/types-rs/base/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1+
pub mod public_inputs;
12
pub mod utils;
2-
pub mod public_inputs;

common/types-rs/base/src/public_inputs.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use alloy_primitives::B256;
2-
pub mod chunk;
32
pub mod batch;
43
pub mod bundle;
4+
pub mod chunk;
55

66
/// Defines behaviour to be implemented by types representing the public-input values of a circuit.
77
pub trait PublicInputs {
@@ -13,7 +13,6 @@ pub trait PublicInputs {
1313
fn validate(&self, prev_pi: &Self);
1414
}
1515

16-
1716
#[derive(
1817
Default,
1918
Debug,
@@ -79,4 +78,4 @@ impl<T: MultiVersionPublicInputs> PublicInputs for (T, ForkName) {
7978
assert_eq!(self.1, prev_pi.1);
8079
self.0.validate(&prev_pi.0, self.1)
8180
}
82-
}
81+
}

common/types-rs/base/src/public_inputs/batch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,4 @@ impl MultiVersionPublicInputs for BatchInfo {
141141
assert_eq!(prev_pi.post_msg_queue_hash, B256::ZERO);
142142
}
143143
}
144-
}
144+
}

common/types-rs/base/src/public_inputs/bundle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use alloy_primitives::B256;
22

33
use crate::{
4-
public_inputs::{ForkName, PublicInputs, MultiVersionPublicInputs},
4+
public_inputs::{ForkName, MultiVersionPublicInputs, PublicInputs},
55
utils::keccak256,
66
};
77

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
mod hash;
22
pub use hash::{keccak256, keccak256_rv32, sha256_rv32};
3-

common/types-rs/batch/src/header/v6.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use alloy_primitives::B256;
21
use super::BatchHeader;
2+
use alloy_primitives::B256;
33
use types_base::utils::keccak256;
44

55
/// Represents the header summarising the batch of chunks as per DA-codec v6.

common/types-rs/batch/src/payload/v7.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
use alloy_primitives::B256;
22

33
use crate::BatchHeaderV7;
4-
use types_base::{public_inputs::chunk::{SIZE_BLOCK_CTX, BlockContextV2, ChunkInfo}, utils::keccak256};
4+
use types_base::{
5+
public_inputs::chunk::{BlockContextV2, ChunkInfo, SIZE_BLOCK_CTX},
6+
utils::keccak256,
7+
};
58

69
use super::N_BLOB_BYTES;
710

common/types-rs/batch/src/witness.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
use types_base::public_inputs::{ForkName, chunk::ChunkInfo};
2-
use types_agg::{ProofCarryingWitness, AggregationInput, ProgramCommitment};
31
use crate::header::ReferenceHeader;
2+
use types_agg::{AggregationInput, ProgramCommitment, ProofCarryingWitness};
3+
use types_base::public_inputs::{ForkName, chunk::ChunkInfo};
44

55
/// Simply rewrap byte48 to avoid unnecessary dep
66
pub type Bytes48 = [u8; 48];

common/types-rs/bundle/src/witness.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
use types_agg::{AggregationInput, ProgramCommitment, ProofCarryingWitness};
12
use types_base::public_inputs::batch::BatchInfo;
2-
use types_agg::{ProofCarryingWitness, AggregationInput, ProgramCommitment};
33

44
/// The witness for the bundle circuit.
55
#[derive(Clone, Debug, rkyv::Archive, rkyv::Deserialize, rkyv::Serialize)]

0 commit comments

Comments
 (0)