Skip to content

Commit

Permalink
remove redundant method 'degrees'
Browse files Browse the repository at this point in the history
  • Loading branch information
roynalnaruto committed Aug 26, 2024
1 parent 87e0bfa commit 49b9e63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
5 changes: 1 addition & 4 deletions prover/src/aggregator/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use snark_verifier_sdk::Snark;

use crate::{
common,
config::{LayerId, AGG_DEGREES},
config::LayerId,
consts::{BATCH_KECCAK_ROW, BATCH_VK_FILENAME, BUNDLE_VK_FILENAME, CHUNK_PROTOCOL_FILENAME},
io::{force_to_read, try_to_read},
proof::BundleProof,
Expand All @@ -27,9 +27,6 @@ pub struct Prover<'params> {
}

impl<'params> Prover<'params> {
pub fn degrees() -> Vec<u32> {
(*AGG_DEGREES).clone()
}
pub fn from_params_and_assets(
params_map: &'params BTreeMap<u32, ParamsKZG<Bn256>>,
assets_dir: &str,
Expand Down
15 changes: 3 additions & 12 deletions prover/src/zkevm/prover.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
use std::collections::BTreeMap;

use crate::{
common,
config::{LayerId, ZKEVM_DEGREES},
consts::CHUNK_VK_FILENAME,
io::try_to_read,
proof::compare_chunk_info,
types::ChunkProvingTask,
utils::chunk_trace_to_witness_block,
zkevm::circuit::calculate_row_usage_of_witness_block,
ChunkProof,
common, config::LayerId, consts::CHUNK_VK_FILENAME, io::try_to_read, proof::compare_chunk_info,
types::ChunkProvingTask, utils::chunk_trace_to_witness_block,
zkevm::circuit::calculate_row_usage_of_witness_block, ChunkProof,
};
use aggregator::ChunkInfo;
use anyhow::Result;
Expand All @@ -24,9 +18,6 @@ pub struct Prover<'params> {
}

impl<'params> Prover<'params> {
pub fn degrees() -> Vec<u32> {
(*ZKEVM_DEGREES).clone()
}
pub fn from_params_and_assets(
params_map: &'params BTreeMap<u32, ParamsKZG<Bn256>>,
assets_dir: &str,
Expand Down

0 comments on commit 49b9e63

Please sign in to comment.