-
Notifications
You must be signed in to change notification settings - Fork 9
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
1 parent
ecdb398
commit d3c1e26
Showing
31 changed files
with
31,987 additions
and
114 deletions.
There are no files selected for viewing
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tests/proofs |
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,2 @@ | ||
# Excluded proof files from stats and hide in diffs. | ||
tests/proofs/* linguist-generated |
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 +1,5 @@ | ||
target | ||
snfoundry_trace | ||
.snfoundry_cache | ||
.snfoundry_versioned_programs | ||
profile.pb.gz |
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,2 +1,2 @@ | ||
scarb nightly-2024-08-31 | ||
starknet-foundry 0.30.0 | ||
starknet-foundry 0.32.0 |
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,6 +1,22 @@ | ||
# Code generated by scarb DO NOT EDIT. | ||
version = 1 | ||
|
||
[[package]] | ||
name = "snforge_scarb_plugin" | ||
version = "0.32.0" | ||
source = "git+https://github.com/foundry-rs/starknet-foundry?tag=v0.32.0#3817c903b640201c72e743b9bbe70a97149828a2" | ||
|
||
[[package]] | ||
name = "snforge_std" | ||
version = "0.32.0" | ||
source = "git+https://github.com/foundry-rs/starknet-foundry?tag=v0.32.0#3817c903b640201c72e743b9bbe70a97149828a2" | ||
dependencies = [ | ||
"snforge_scarb_plugin", | ||
] | ||
|
||
[[package]] | ||
name = "stwo_cairo_verifier" | ||
version = "0.1.0" | ||
dependencies = [ | ||
"snforge_std", | ||
] |
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,27 +1,20 @@ | ||
mod channel; | ||
mod circle; | ||
mod fields; | ||
mod fri; | ||
mod pcs; | ||
mod poly; | ||
mod queries; | ||
mod utils; | ||
mod vcs; | ||
pub mod channel; | ||
pub mod circle; | ||
pub mod fields; | ||
pub mod fri; | ||
pub mod pcs; | ||
pub mod poly; | ||
pub mod queries; | ||
pub mod utils; | ||
pub mod vcs; | ||
pub mod verifier; | ||
|
||
pub use fields::{BaseField, SecureField}; | ||
|
||
fn main() {} | ||
/// An array in which each element relates (by index) to a column in the trace. | ||
pub type ColumnArray<T> = Array<T>; | ||
|
||
/// An array in which each element relates (by index) to a commitment tree. | ||
pub type TreeArray<T> = Array<T>; | ||
|
||
#[derive(Clone, Drop)] | ||
pub enum VerificationError { | ||
/// Proof has invalid structure. | ||
InvalidStructure: felt252, | ||
/// Lookup values do not match. | ||
InvalidLookup: felt252, | ||
/// Merkle proof invalid. | ||
Merkle: vcs::verifier::MerkleVerificationError, | ||
/// Proof of work verification failed. | ||
ProofOfWork, | ||
// OodsNotMatching, | ||
// Fri(#[from] FriVerificationError), | ||
} | ||
fn main() {} |
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 +1,8 @@ | ||
mod quotients; | ||
pub mod verifier; | ||
|
||
#[derive(Drop, Copy)] | ||
pub struct PcsConfig { | ||
pub pow_bits: u32, | ||
pub fri_config: stwo_cairo_verifier::fri::FriConfig, | ||
} |
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.