-
Notifications
You must be signed in to change notification settings - Fork 401
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: array and symbolic evaluation (#390)
- Loading branch information
Showing
21 changed files
with
1,208 additions
and
532 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,33 @@ | ||
use p3_air::Air; | ||
|
||
use sp1_core::air::MachineAir; | ||
use sp1_core::stark::{GenericVerifierConstraintFolder, MachineChip, StarkGenericConfig}; | ||
use sp1_recursion_compiler::ir::{Ext, SymbolicExt}; | ||
|
||
#[allow(clippy::type_complexity)] | ||
#[allow(dead_code)] | ||
fn verify_constraints<SC: StarkGenericConfig, A: MachineAir<SC::Val>>( | ||
chip: MachineChip<SC, A>, | ||
folder: &mut GenericVerifierConstraintFolder< | ||
SC::Val, | ||
SC::Challenge, | ||
Ext<SC::Val, SC::Challenge>, | ||
SymbolicExt<SC::Val, SC::Challenge>, | ||
>, | ||
) where | ||
A: for<'a> Air< | ||
GenericVerifierConstraintFolder< | ||
'a, | ||
SC::Val, | ||
SC::Challenge, | ||
Ext<SC::Val, SC::Challenge>, | ||
SymbolicExt<SC::Val, SC::Challenge>, | ||
>, | ||
>, | ||
{ | ||
chip.eval(folder); | ||
} | ||
|
||
fn main() { | ||
println!("Hello, world!"); | ||
} |
Oops, something went wrong.