diff --git a/mpcs/src/basefold/structure.rs b/mpcs/src/basefold/structure.rs index 5ee595f9d..129409efd 100644 --- a/mpcs/src/basefold/structure.rs +++ b/mpcs/src/basefold/structure.rs @@ -58,8 +58,7 @@ pub struct BasefoldVerifierParams> { /// A polynomial commitment together with all the data (e.g., the codeword, and Merkle tree) /// used to generate this commitment and for assistant in opening -#[derive(Clone, Debug, Default, Serialize, Deserialize)] -#[serde(bound(serialize = "E: Serialize", deserialize = "E: DeserializeOwned"))] +#[derive(Clone, Debug, Default)] pub struct BasefoldCommitmentWithWitness where E::BaseField: Serialize + DeserializeOwned, diff --git a/mpcs/src/lib.rs b/mpcs/src/lib.rs index c74c57d2a..608507542 100644 --- a/mpcs/src/lib.rs +++ b/mpcs/src/lib.rs @@ -113,7 +113,7 @@ pub trait PolynomialCommitmentScheme: Clone + Debug { type Param: Clone + Debug + Serialize + DeserializeOwned; type ProverParam: Clone + Debug + Serialize + DeserializeOwned; type VerifierParam: Clone + Debug + Serialize + DeserializeOwned; - type CommitmentWithWitness: Clone + Debug + Default + Serialize + DeserializeOwned; + type CommitmentWithWitness: Clone + Debug + Default; type Commitment: Clone + Debug + Default + Serialize + DeserializeOwned; type CommitmentChunk: Clone + Debug + Default; type Proof: Clone + Debug + Serialize + DeserializeOwned;