Skip to content

Commit

Permalink
feat: shard transition public values (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevjue authored Apr 8, 2024
1 parent 4551cd6 commit 54da3fd
Show file tree
Hide file tree
Showing 46 changed files with 803 additions and 693 deletions.
74 changes: 37 additions & 37 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 2 additions & 15 deletions core/src/air/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -695,14 +695,6 @@ pub trait MultiTableAirBuilder: PermutationAirBuilder {

fn cumulative_sum(&self) -> Self::Sum;
}

pub trait PublicValuesBuilder: AirBuilderWithPublicValues {
/// A method to check if this builder is an interaction builder. Only the InteractionBuilder
/// should have a different implementation.
fn is_interaction_builder(&self) -> bool {
false
}
}
/// A trait which contains all helper methods for building an AIR.
pub trait SP1AirBuilder:
BaseAirBuilder
Expand All @@ -712,7 +704,7 @@ pub trait SP1AirBuilder:
+ MemoryAirBuilder
+ ProgramAirBuilder
+ ExtensionAirBuilder
+ PublicValuesBuilder
+ AirBuilderWithPublicValues
{
}

Expand All @@ -733,16 +725,11 @@ impl<AB: BaseAirBuilder> AluAirBuilder for AB {}
impl<AB: BaseAirBuilder> MemoryAirBuilder for AB {}
impl<AB: BaseAirBuilder> ProgramAirBuilder for AB {}
impl<AB: BaseAirBuilder> ExtensionAirBuilder for AB {}
impl<AB: BaseAirBuilder + PublicValuesBuilder> SP1AirBuilder for AB {}
impl<AB: BaseAirBuilder + AirBuilderWithPublicValues> SP1AirBuilder for AB {}

impl<'a, SC: StarkGenericConfig> EmptyMessageBuilder for ProverConstraintFolder<'a, SC> {}
impl<'a, SC: StarkGenericConfig> EmptyMessageBuilder for VerifierConstraintFolder<'a, SC> {}
impl<F: Field> EmptyMessageBuilder for SymbolicAirBuilder<F> {}
impl<'a, SC: StarkGenericConfig> PublicValuesBuilder for ProverConstraintFolder<'a, SC> {}
impl<'a, SC: StarkGenericConfig> PublicValuesBuilder for VerifierConstraintFolder<'a, SC> {}
impl<F: Field> PublicValuesBuilder for SymbolicAirBuilder<F> {}

#[cfg(debug_assertions)]
impl<'a, F: Field> EmptyMessageBuilder for p3_uni_stark::DebugConstraintBuilder<'a, F> {}
#[cfg(debug_assertions)]
impl<'a, F: Field> PublicValuesBuilder for p3_uni_stark::DebugConstraintBuilder<'a, F> {}
Loading

0 comments on commit 54da3fd

Please sign in to comment.