Skip to content

Commit

Permalink
some deserialization stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
kevjue committed Feb 18, 2024
1 parent 3343167 commit 15fe563
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
4 changes: 0 additions & 4 deletions core/src/stark/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,6 @@ pub struct ShardOpenedValues<T: Serialize> {

#[cfg(feature = "perf")]
#[derive(Serialize, Deserialize)]
#[serde(bound(
serialize = "SC: StarkGenericConfig",
deserialize = "SC: StarkGenericConfig"
))]
pub struct ShardProof<SC: StarkGenericConfig> {
pub index: usize,
pub commitment: ShardCommitment<Com<SC>>,
Expand Down
11 changes: 2 additions & 9 deletions core/src/utils/prove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,8 @@ pub(super) mod baby_bear_blake3 {
type Pcs =
TwoAdicFriPcs<TwoAdicFriPcsConfig<Val, Challenge, Challenger, Dft, ValMmcs, ChallengeMmcs>>;

#[derive(Deserialize)]
#[serde(from = "std::marker::PhantomData<BabyBearBlake3>")]
pub struct BabyBearBlake3 {
perm: Perm,
pcs: Pcs,
Expand All @@ -488,15 +490,6 @@ pub(super) mod baby_bear_blake3 {
}
}

impl<'de> Deserialize<'de> for BabyBearBlake3 {
fn deserialize<D>(_deserializer: D) -> Result<Self, D::Error>
where
D: serde::Deserializer<'de>,
{
Ok(Self::new())
}
}

impl BabyBearBlake3 {
pub fn new() -> Self {
let perm = Perm::new(8, 22, RC_16_30.to_vec(), DiffusionMatrixBabybear);
Expand Down

0 comments on commit 15fe563

Please sign in to comment.