From d84619c74291b18b43197b85da1454ec85a9d23a Mon Sep 17 00:00:00 2001 From: Neo Date: Mon, 8 Jan 2024 23:31:14 +0100 Subject: [PATCH] adjust structs --- src/domains.cairo | 1 + src/structs/stark_config.cairo | 8 ++++---- src/structs/stark_proof.cairo | 14 ++++++++++---- src/vector_commitment/vector_commitment.cairo | 2 +- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/domains.cairo b/src/domains.cairo index e77d46862..b4108223f 100644 --- a/src/domains.cairo +++ b/src/domains.cairo @@ -5,6 +5,7 @@ use cairo_verifier::{ }; // Information about the domains that are used in the stark proof. +#[derive(Drop)] struct StarkDomains { // Log2 of the evaluation domain size. log_eval_domain_size: felt252, diff --git a/src/structs/stark_config.cairo b/src/structs/stark_config.cairo index 9991c94f6..b4a15809e 100644 --- a/src/structs/stark_config.cairo +++ b/src/structs/stark_config.cairo @@ -10,7 +10,7 @@ const MAX_N_COLUMNS: felt252 = 128; const AIR_LAYOUT_N_ORIGINAL_COLUMNS: felt252 = 12; const AIR_LAYOUT_N_INTERACTION_COLUMNS: felt252 = 3; -#[derive(Drop, Serde)] +#[derive(Drop, Clone, Serde)] struct StarkConfig { traces: TracesConfig, composition: TableCommitmentConfig, @@ -45,7 +45,7 @@ fn stark_config_validate(stark_config: StarkConfig, security_bits: felt252) { ); } -#[derive(Drop, Serde)] +#[derive(Drop, Clone, Serde)] struct TracesConfig { original: TableCommitmentConfig, interaction: TableCommitmentConfig, @@ -73,7 +73,7 @@ fn traces_config_validate( ); } -#[derive(Drop, Serde)] +#[derive(Drop, Clone, Serde)] struct FriConfig { // Log2 of the size of the input layer to FRI. log_input_size: felt252, @@ -120,7 +120,7 @@ impl IntoDeserializationUnfriendlyFriConfig of Into