-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* new runner version * apply clippy * StarkConfig parsed * PublicInput * StarkUnsentCommitment * partial StarkWitness * FriWitness * clippy
- Loading branch information
1 parent
9554028
commit 91a80bb
Showing
13 changed files
with
136 additions
and
37 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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[package] | ||
name = "cairo_verifier" | ||
version = "0.1.0" | ||
|
||
[lib] | ||
sierra-text = true |
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,2 +1,5 @@ | ||
mod public_input; | ||
mod stark_config; | ||
mod stark_proof; | ||
mod stark_unsent_commitment; | ||
mod stark_witness; |
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,16 @@ | ||
#[derive(Drop, Serde)] | ||
struct PublicInput { | ||
log_n_steps: felt252, | ||
range_check_min: felt252, | ||
range_check_max: felt252, | ||
layout: felt252, | ||
dynamic_params: Array<felt252>, | ||
n_segments: felt252, | ||
segments: Array<felt252>, | ||
padding_addr: felt252, | ||
padding_value: felt252, | ||
main_page_len: felt252, | ||
main_page: Array<felt252>, | ||
n_continuous_pages: felt252, | ||
continuous_page_headers: Array<felt252>, | ||
} |
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,9 +1,13 @@ | ||
use cairo_verifier::input_structs::stark_config::StarkConfig; | ||
use cairo_verifier::input_structs::{ | ||
stark_config::StarkConfig, public_input::PublicInput, | ||
stark_unsent_commitment::StarkUnsentCommitment, stark_witness::StarkWitness, | ||
}; | ||
|
||
#[derive(Copy, Drop)] | ||
|
||
#[derive(Drop, Serde)] | ||
struct StarkProof { | ||
config: StarkConfig, | ||
// public_input: PublicInput, | ||
// unsent_commitment: StarkUnsentCommitment, | ||
// witness: StarkWitness, | ||
public_input: PublicInput, | ||
unsent_commitment: StarkUnsentCommitment, | ||
witness: StarkWitness, | ||
} |
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,25 @@ | ||
#[derive(Drop, Serde)] | ||
struct StarkUnsentCommitment { | ||
traces: TracesUnsentCommitment, | ||
composition: felt252, | ||
oods_values: Array<felt252>, | ||
fri: FriUnsentCommitment, | ||
proof_of_work: ProofOfWorkUnsentCommitment, | ||
} | ||
|
||
#[derive(Drop, Serde)] | ||
struct TracesUnsentCommitment { | ||
original: felt252, | ||
interaction: felt252, | ||
} | ||
|
||
#[derive(Drop, Serde)] | ||
struct FriUnsentCommitment { | ||
inner_layers: Array<felt252>, | ||
last_layer_coefficients: Array<felt252>, | ||
} | ||
|
||
#[derive(Drop, Serde)] | ||
struct ProofOfWorkUnsentCommitment { | ||
nonce: felt252, | ||
} |
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,42 @@ | ||
#[derive(Drop, Serde)] | ||
struct StarkWitness { | ||
traces_decommitment: TracesDecommitment, | ||
traces_witness: TracesWitness, | ||
interaction: TableCommitmentWitness, | ||
composition_decommitment: TableDecommitment, | ||
composition_witness: TableCommitmentWitness, | ||
fri_witness: FriWitness, | ||
} | ||
|
||
#[derive(Drop, Serde)] | ||
struct TracesDecommitment { | ||
original: TableDecommitment, | ||
interaction: TableDecommitment, | ||
} | ||
|
||
#[derive(Drop, Serde)] | ||
struct TableDecommitment { | ||
n_values: felt252, | ||
values: Array<felt252>, | ||
} | ||
|
||
#[derive(Drop, Serde)] | ||
struct TracesWitness { | ||
original: TableCommitmentWitness, | ||
} | ||
|
||
#[derive(Drop, Serde)] | ||
struct TableCommitmentWitness { | ||
vector: VectorCommitmentWitness, | ||
} | ||
|
||
#[derive(Drop, Serde)] | ||
struct VectorCommitmentWitness { | ||
n_authentications: felt252, | ||
authentications: Array<felt252>, | ||
} | ||
|
||
#[derive(Drop, Serde)] | ||
struct FriWitness { | ||
layers: Array<felt252>, | ||
} |
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