-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove (almost) all dead code #462
Merged
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d48c4d2
Remove dead code
matthiasgoergens ab5c59f
More dead code
matthiasgoergens 20db9fa
Remove dead code
matthiasgoergens d89ddc2
Simpler
matthiasgoergens 5b75bdb
Simpler
matthiasgoergens 98ceb67
Merge branch 'master' into matthias/dead-code-2
matthiasgoergens 115faaf
Merge branch 'master' into matthias/dead-code-2
matthiasgoergens 8a3a9fb
Merge remote-tracking branch 'origin/master' into matthias/dead-code-2
matthiasgoergens File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,15 @@ | ||
use ff_ext::ExtensionField; | ||
|
||
// TODO: to be changed to a real PCS scheme. | ||
type BatchedPCSProof<F> = Vec<Vec<F>>; | ||
type Commitment<F> = Vec<F>; | ||
|
||
pub mod prover; | ||
pub mod verifier; | ||
|
||
pub struct CommitPhaseProof<E: ExtensionField> { | ||
// TODO(Matthias): Check whether we need this field. | ||
#[allow(dead_code)] | ||
commitments: Vec<Commitment<E>>, | ||
} | ||
|
||
pub type GKRGraphProof<F> = gkr_graph::structs::IOPProof<F>; | ||
pub type GKRGraphProverState<F> = gkr_graph::structs::IOPProverState<F>; | ||
pub type GKRGraphVerifierState<F> = gkr_graph::structs::IOPVerifierState<F>; | ||
|
||
pub struct OpenPhaseProof<E: ExtensionField> { | ||
// TODO(Matthias): Check whether we need this field. | ||
#[allow(dead_code)] | ||
pcs_proof: BatchedPCSProof<E>, | ||
} | ||
|
||
pub struct SingerProof<E: ExtensionField> { | ||
// commitment_phase_proof: CommitPhaseProof<F>, | ||
// TODO: restore and implement `commitment_phase_proof` and `open_phase_proof` | ||
gkr_phase_proof: GKRGraphProof<E>, | ||
// open_phase_proof: OpenPhaseProof<F>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,16 +3,6 @@ use ff_ext::ExtensionField; | |
use itertools::izip; | ||
use simple_frontend::structs::{CellId, CircuitBuilder}; | ||
|
||
// TODO(Matthias): Check whether we need this function. | ||
#[allow(dead_code)] | ||
pub(crate) fn i64_to_base_field<E: ExtensionField>(x: i64) -> E::BaseField { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a copy and paste from |
||
if x >= 0 { | ||
E::BaseField::from(x as u64) | ||
} else { | ||
-E::BaseField::from((-x) as u64) | ||
} | ||
} | ||
|
||
pub(crate) fn add_assign_each_cell<E: ExtensionField>( | ||
circuit_builder: &mut CircuitBuilder<E>, | ||
dest: &[CellId], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note for general reference: the current implementation of
build_eq_x_r
uses a similar functionbuild_eq_x_r_helper_sequential
, so the removed unused code here looks to be redundant.