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

Commit 7994fe0

Browse files
committed
allow dead code for now
1 parent 76a6a70 commit 7994fe0

File tree

2 files changed

+21
-20
lines changed

2 files changed

+21
-20
lines changed

aggregator/src/blob_consistency.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ use cfg_if::cfg_if;
88
mod blob_data;
99
use blob_data::{AssignedBlobDataExport, BlobDataConfig};
1010

11-
#[cfg(feature = "da-avail")]
11+
// TODO: remove dead code instead
12+
#[allow(dead_code)]
1213
mod avail;
1314

14-
#[cfg(not(feature = "da-avail"))]
15+
// TODO: remove dead code instead
16+
#[allow(dead_code)]
1517
mod eip4844;
1618

1719
cfg_if! {

aggregator/src/blob_consistency/avail.rs

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
use super::{AssignedBlobDataExport, BlobDataConfig};
2-
use crate::{constants::N_BYTES_U256, BatchData, RlcConfig};
3-
use eth_types::{ToBigEndian, H256, U256};
4-
use ethers_core::k256::sha2::{Digest, Sha256};
1+
use super::{AssignedBlobDataExport};
2+
use crate::{BatchData, RlcConfig};
3+
use eth_types::{H256, U256};
54
use halo2_base::{gates::range::RangeConfig, AssignedValue, Context};
65
use halo2_ecc::bigint::CRTInteger;
76
use halo2_proofs::{
@@ -20,37 +19,37 @@ pub struct BlobConsistencyConfig<const N_SNARKS: usize> {}
2019

2120
impl<const N_SNARKS: usize> BlobConsistencyConfig<N_SNARKS> {
2221
pub fn construct(
23-
meta: &mut ConstraintSystem<Fr>,
24-
challenges: &Challenges<Expression<Fr>>,
25-
u8_table: U8Table,
22+
_meta: &mut ConstraintSystem<Fr>,
23+
_challenges: &Challenges<Expression<Fr>>,
24+
_u8_table: U8Table,
2625
_: RangeConfig<Fr>,
2726
) -> Self {
2827
unimplemented!()
2928
}
3029

3130
pub fn assign_barycentric(
3231
&self,
33-
ctx: &mut Context<Fr>,
34-
bytes: &[u8],
35-
challenge: U256,
32+
_ctx: &mut Context<Fr>,
33+
_bytes: &[u8],
34+
_challenge: U256,
3635
) -> AssignedBarycentricEvaluationConfig {
3736
unimplemented!()
3837
}
3938

4039
pub fn assign_blob_data(
4140
&self,
42-
layouter: &mut impl Layouter<Fr>,
43-
challenge_value: Challenges<Value<Fr>>,
44-
rlc_config: &RlcConfig,
45-
blob_bytes: &[u8],
41+
_layouter: &mut impl Layouter<Fr>,
42+
_challenge_value: Challenges<Value<Fr>>,
43+
_rlc_config: &RlcConfig,
44+
_blob_bytes: &[u8],
4645
) -> Result<AssignedBlobDataExport, Error> {
4746
unimplemented!()
4847
}
4948

5049
pub fn link(
51-
layouter: &mut impl Layouter<Fr>,
52-
blob_crts_limbs: &[[AssignedCell<Fr, Fr>; LIMBS]],
53-
barycentric_crts: &[CRTInteger<Fr>],
50+
_layouter: &mut impl Layouter<Fr>,
51+
_blob_crts_limbs: &[[AssignedCell<Fr, Fr>; LIMBS]],
52+
_barycentric_crts: &[CRTInteger<Fr>],
5453
) -> Result<(), Error> {
5554
unimplemented!()
5655
}
@@ -64,7 +63,7 @@ pub struct BlobConsistencyWitness {
6463
}
6564

6665
impl BlobConsistencyWitness {
67-
pub fn new<const N_SNARKS: usize>(bytes: &[u8], _: &BatchData<N_SNARKS>) -> Self {
66+
pub fn new<const N_SNARKS: usize>(_bytes: &[u8], _: &BatchData<N_SNARKS>) -> Self {
6867
Self {
6968
id: H256::default(), // should be keccak of bytes
7069
blob_data_proof: Default::default(),

0 commit comments

Comments
 (0)