-
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.
- Loading branch information
1 parent
0d39ab8
commit 00c970d
Showing
3 changed files
with
31 additions
and
3 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,3 +1,4 @@ | ||
mod public_input; | ||
mod stark_config; | ||
mod stark_proof; | ||
mod stark_unsent_commitment; |
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,11 +1,13 @@ | ||
use cairo_verifier::input_structs::stark_config::StarkConfig; | ||
use cairo_verifier::input_structs::public_input::PublicInput; | ||
use cairo_verifier::input_structs::{ | ||
stark_config::StarkConfig, public_input::PublicInput, | ||
stark_unsent_commitment::StarkUnsentCommitment, | ||
}; | ||
|
||
|
||
#[derive(Drop, Serde)] | ||
struct StarkProof { | ||
config: StarkConfig, | ||
public_input: PublicInput, | ||
// unsent_commitment: StarkUnsentCommitment, | ||
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, | ||
} |