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

Commit 2ec09ae

Browse files
committed
cleanup
1 parent 67e2107 commit 2ec09ae

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

aggregator/src/aggregation/circuit.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use ark_std::{end_timer, start_timer};
2-
use eth_types::U256;
32
use halo2_proofs::{
43
circuit::{Layouter, SimpleFloorPlanner, Value},
54
halo2curves::bn256::{Bn256, Fr, G1Affine},
@@ -249,13 +248,7 @@ impl<const N_SNARKS: usize> Circuit<Fr> for BatchCircuit<N_SNARKS> {
249248
let barycentric = config.blob_consistency_config.assign_barycentric(
250249
&mut ctx,
251250
&self.batch_hash.blob_bytes,
252-
U256::from_big_endian(
253-
&self
254-
.batch_hash
255-
.blob_consistency_witness
256-
.challenge()
257-
.to_bytes(),
258-
),
251+
self.batch_hash.blob_consistency_witness.challenge_digest(),
259252
);
260253

261254
ctx.print_stats(&["barycentric"]);

aggregator/src/blob_consistency/eip4844.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ impl BlobConsistencyWitness {
188188
self.blob_versioned_hash
189189
}
190190

191-
pub fn challenge_digest(&self) -> H256 {
192-
self.challenge_digest
191+
pub fn challenge_digest(&self) -> U256 {
192+
word_from_digest(self.challenge_digest)
193193
}
194194

195195
pub fn challenge(&self) -> Scalar {
@@ -228,4 +228,4 @@ fn word_from_digest(x: H256) -> U256 {
228228
U256::from_big_endian(&x.to_fixed_bytes())
229229
}
230230

231-
// word_from scalar would not be used.
231+
// word_from_scalar would not be used.

0 commit comments

Comments
 (0)