Skip to content

Commit

Permalink
Fix comments & naming
Browse files Browse the repository at this point in the history
  • Loading branch information
nyunyunyunyu committed Oct 4, 2024
1 parent b5c1525 commit cc64ecf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions stark-backend/src/keygen/v2/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use crate::{
pub mod types;
pub(crate) mod view;

struct AIRKeygenBuilder<'a, SC: StarkGenericConfig> {
struct AirKeygenBuilder<'a, SC: StarkGenericConfig> {
air: &'a dyn AnyRap<SC>,
prep_keygen_data: PrepKeygenData<SC>,
interaction_chunk_size: Option<usize>,
Expand All @@ -28,7 +28,7 @@ struct AIRKeygenBuilder<'a, SC: StarkGenericConfig> {
pub struct MultiStarkKeygenBuilderV2<'a, SC: StarkGenericConfig> {
pub config: &'a SC,
/// Information for partitioned AIRs.
partitioned_airs: Vec<AIRKeygenBuilder<'a, SC>>,
partitioned_airs: Vec<AirKeygenBuilder<'a, SC>>,
}

impl<'a, SC: StarkGenericConfig> MultiStarkKeygenBuilderV2<'a, SC> {
Expand All @@ -53,7 +53,7 @@ impl<'a, SC: StarkGenericConfig> MultiStarkKeygenBuilderV2<'a, SC> {
air: &'a dyn AnyRap<SC>,
interaction_chunk_size: Option<usize>,
) -> usize {
self.partitioned_airs.push(AIRKeygenBuilder::new(
self.partitioned_airs.push(AirKeygenBuilder::new(
self.config.pcs(),
air,
interaction_chunk_size,
Expand Down Expand Up @@ -124,10 +124,10 @@ impl<'a, SC: StarkGenericConfig> MultiStarkKeygenBuilderV2<'a, SC> {
}
}

impl<'a, SC: StarkGenericConfig> AIRKeygenBuilder<'a, SC> {
impl<'a, SC: StarkGenericConfig> AirKeygenBuilder<'a, SC> {
fn new(pcs: &SC::Pcs, air: &'a dyn AnyRap<SC>, interaction_chunk_size: Option<usize>) -> Self {
let prep_keygen_data = compute_prep_data_for_air(pcs, air);
AIRKeygenBuilder {
AirKeygenBuilder {
air,
prep_keygen_data,
interaction_chunk_size,
Expand Down
1 change: 0 additions & 1 deletion stark-backend/src/prover/v2/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ impl<'c, SC: StarkGenericConfig> MultiTraceStarkProverV2<'c, SC> {
(trace_views, committer.commit(traces))
};

// Generate main trace commitments on the fly.
// Commitments order:
// - for each air:
// - for each cached main trace
Expand Down

0 comments on commit cc64ecf

Please sign in to comment.