-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
99 additions
and
52 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
use crate::{evaluation::EvalExpression, gkr::layer::Layer}; | ||
|
||
pub mod builder; | ||
pub mod protocol; | ||
|
||
#[derive(Clone, Debug, Default)] | ||
pub struct Chip { | ||
/// The number of base inputs committed in the whole protocol. | ||
pub n_committed_bases: usize, | ||
/// The number of ext inputs committed in the whole protocol. | ||
pub n_committed_exts: usize, | ||
|
||
/// The number of challenges generated through the whole protocols | ||
/// (except the ones inside sumcheck protocols). | ||
pub n_challenges: usize, | ||
/// All input evaluations generated at the end of layer protocols will be stored | ||
/// in a vector and this is the length. | ||
pub n_evaluations: usize, | ||
/// The layers of the GKR circuit, in the reverse order. | ||
pub layers: Vec<Layer>, | ||
|
||
/// The polynomial index and evaluation expressions of the base inputs. | ||
pub base_openings: Vec<(usize, EvalExpression)>, | ||
/// The polynomial index and evaluation expressions of the ext inputs. | ||
pub ext_openings: Vec<(usize, EvalExpression)>, | ||
} |
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
This file was deleted.
Oops, something went wrong.