Skip to content

Commit

Permalink
remove TableUnsentCommitmentWithSerde -> felt252
Browse files Browse the repository at this point in the history
  • Loading branch information
Okm165 committed Jan 15, 2024
1 parent 934ef74 commit ec7032e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
5 changes: 2 additions & 3 deletions src/deserialization/stark.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use cairo_verifier::{
TracesUnsentCommitmentWithSerde, TableCommitmentConfigWithSerde,
TableCommitmentWitnessWithSerde, TableDecommitmentWithSerde
},
table::{TableUnsentCommitmentWithSerde},
fri::{FriConfigWithSerde, FriUnsentCommitmentWithSerde, FriWitnessWithSerde},
pow::{ProofOfWorkConfigWithSerde, ProofOfWorkUnsentCommitmentWithSerde},
},
Expand Down Expand Up @@ -146,7 +145,7 @@ impl IntoPublicInput of Into<PublicInputWithSerde, PublicInput> {
#[derive(Drop, Serde)]
struct StarkUnsentCommitmentWithSerde {
traces: TracesUnsentCommitmentWithSerde,
composition: TableUnsentCommitmentWithSerde,
composition: felt252,
oods_values: Array<felt252>,
fri: FriUnsentCommitmentWithSerde,
proof_of_work: ProofOfWorkUnsentCommitmentWithSerde,
Expand All @@ -155,7 +154,7 @@ impl IntoStarkUnsentCommitment of Into<StarkUnsentCommitmentWithSerde, StarkUnse
fn into(self: StarkUnsentCommitmentWithSerde) -> 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(),
Expand Down
10 changes: 0 additions & 10 deletions src/deserialization/table.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,3 @@ impl IntoTableCommitmentWitness of Into<TableCommitmentWitnessWithSerde, TableCo
TableCommitmentWitness { vector: self.vector.into(), }
}
}

#[derive(Drop, Serde)]
struct TableUnsentCommitmentWithSerde {
vector: felt252,
}
impl IntoTableUnsentCommitment of Into<TableUnsentCommitmentWithSerde, felt252> {
fn into(self: TableUnsentCommitmentWithSerde) -> felt252 {
self.vector
}
}
2 changes: 1 addition & 1 deletion src/deserialization/traces.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use cairo_verifier::{
},
table::{
TableCommitmentConfigWithSerde, TableDecommitmentWithSerde,
TableCommitmentWitnessWithSerde, TableUnsentCommitmentWithSerde
TableCommitmentWitnessWithSerde,
}
},
table_commitment::table_commitment::{
Expand Down

0 comments on commit ec7032e

Please sign in to comment.