Skip to content

Commit

Permalink
StarkUnsentCommitment
Browse files Browse the repository at this point in the history
  • Loading branch information
neotheprogramist committed Dec 30, 2023
1 parent 0d39ab8 commit 00c970d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/input_structs.cairo
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;
8 changes: 5 additions & 3 deletions src/input_structs/stark_proof.cairo
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,
}
25 changes: 25 additions & 0 deletions src/input_structs/stark_unsent_commitment.cairo
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,
}

0 comments on commit 00c970d

Please sign in to comment.