-
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 a88d74d
Showing
27 changed files
with
31,984 additions
and
114 deletions.
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
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 |
---|---|---|
@@ -1,6 +1,22 @@ | ||
# Code generated by scarb DO NOT EDIT. | ||
version = 1 | ||
|
||
[[package]] | ||
name = "snforge_scarb_plugin" | ||
version = "0.1.0" | ||
source = "git+https://github.com/foundry-rs/starknet-foundry?tag=v0.30.0#196f06b251926697c3d66800f2a93ae595e76496" | ||
|
||
[[package]] | ||
name = "snforge_std" | ||
version = "0.30.0" | ||
source = "git+https://github.com/foundry-rs/starknet-foundry?tag=v0.30.0#196f06b251926697c3d66800f2a93ae595e76496" | ||
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.