From ec7032e174dd1c033b605a467c31ba08a1b4041c Mon Sep 17 00:00:00 2001 From: Bartosz Nowak Date: Mon, 15 Jan 2024 14:13:41 +0100 Subject: [PATCH] remove TableUnsentCommitmentWithSerde -> felt252 --- src/deserialization/stark.cairo | 5 ++--- src/deserialization/table.cairo | 10 ---------- src/deserialization/traces.cairo | 2 +- 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/src/deserialization/stark.cairo b/src/deserialization/stark.cairo index ba653993a..ea5eb8ec3 100644 --- a/src/deserialization/stark.cairo +++ b/src/deserialization/stark.cairo @@ -9,7 +9,6 @@ use cairo_verifier::{ TracesUnsentCommitmentWithSerde, TableCommitmentConfigWithSerde, TableCommitmentWitnessWithSerde, TableDecommitmentWithSerde }, - table::{TableUnsentCommitmentWithSerde}, fri::{FriConfigWithSerde, FriUnsentCommitmentWithSerde, FriWitnessWithSerde}, pow::{ProofOfWorkConfigWithSerde, ProofOfWorkUnsentCommitmentWithSerde}, }, @@ -146,7 +145,7 @@ impl IntoPublicInput of Into { #[derive(Drop, Serde)] struct StarkUnsentCommitmentWithSerde { traces: TracesUnsentCommitmentWithSerde, - composition: TableUnsentCommitmentWithSerde, + composition: felt252, oods_values: Array, fri: FriUnsentCommitmentWithSerde, proof_of_work: ProofOfWorkUnsentCommitmentWithSerde, @@ -155,7 +154,7 @@ impl IntoStarkUnsentCommitment of Into StarkUnsentCommitment { StarkUnsentCommitment { traces: self.traces.into(), - composition: self.composition.into(), + composition: self.composition, oods_values: self.oods_values.span(), fri: self.fri.into(), proof_of_work: self.proof_of_work.into(), diff --git a/src/deserialization/table.cairo b/src/deserialization/table.cairo index 572bd86fc..86070689b 100644 --- a/src/deserialization/table.cairo +++ b/src/deserialization/table.cairo @@ -37,13 +37,3 @@ impl IntoTableCommitmentWitness of Into { - fn into(self: TableUnsentCommitmentWithSerde) -> felt252 { - self.vector - } -} diff --git a/src/deserialization/traces.cairo b/src/deserialization/traces.cairo index ca7122599..073e7255d 100644 --- a/src/deserialization/traces.cairo +++ b/src/deserialization/traces.cairo @@ -11,7 +11,7 @@ use cairo_verifier::{ }, table::{ TableCommitmentConfigWithSerde, TableDecommitmentWithSerde, - TableCommitmentWitnessWithSerde, TableUnsentCommitmentWithSerde + TableCommitmentWitnessWithSerde, } }, table_commitment::table_commitment::{