Skip to content

Commit

Permalink
copy derive is zero cost abstraction
Browse files Browse the repository at this point in the history
  • Loading branch information
neotheprogramist committed Dec 24, 2023
1 parent fb69e46 commit 0196c33
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/input_structs/stark_config.cairo
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#[derive(Drop)]
#[derive(Copy, Drop)]
struct StarkConfig {
traces: TracesConfig,
// composition: TableCommitmentConfig,
composition: TableCommitmentConfig,
// fri: FriConfig,
// proof_of_work: ProofOfWorkConfig,
// // Log2 of the trace domain size.
Expand All @@ -15,25 +15,25 @@ struct StarkConfig {
// n_verifier_friendly_commitment_layers: felt252,
}

#[derive(Drop)]
#[derive(Copy, Drop)]
struct TracesConfig {
original: TableCommitmentConfig,
interaction: TableCommitmentConfig,
}

#[derive(Drop)]
#[derive(Copy, Drop)]
struct TableCommitmentConfig {
columns: felt252,
vector: VectorCommitmentConfig
}

#[derive(Drop)]
#[derive(Copy, Drop)]
struct VectorCommitmentConfig {
height: felt252,
verifier_friendly_commitment_layers: felt252,
}

#[derive(Drop)]
#[derive(Copy, Drop)]
struct FriConfig {
// Log2 of the size of the input layer to FRI.
log_input_size: felt252,
Expand All @@ -48,7 +48,7 @@ struct FriConfig {
log_last_layer_degree_bound: felt252,
}

#[derive(Drop)]
#[derive(Copy, Drop)]
struct ProofOfWorkConfig {
// Proof of work difficulty (number of bits required to be 0).
n_bits: felt252,
Expand Down
2 changes: 1 addition & 1 deletion src/input_structs/stark_proof.cairo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use cairo_verifier::input_structs::stark_config::StarkConfig;

#[derive(Drop)]
#[derive(Copy, Drop)]
struct StarkProof {
config: StarkConfig,
// public_input: PublicInput,
Expand Down

0 comments on commit 0196c33

Please sign in to comment.