Skip to content

Commit

Permalink
rm CanonicalDeserialize warnings msgs for VerifierParams
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaucube committed Oct 11, 2024
1 parent 0903e24 commit f0f90b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 32 deletions.
17 changes: 1 addition & 16 deletions folding-schemes/src/folding/nova/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use ark_ec::{CurveGroup, Group};
use ark_ff::{BigInteger, PrimeField};
use ark_r1cs_std::{groups::GroupOpsBounds, prelude::CurveVar, ToConstraintFieldGadget};
use ark_relations::r1cs::{ConstraintSynthesizer, ConstraintSystem};
use ark_serialize::{CanonicalDeserialize, CanonicalSerialize, SerializationError, Valid};
use ark_serialize::{CanonicalDeserialize, CanonicalSerialize, Valid};
use ark_std::fmt::Debug;
use ark_std::rand::RngCore;
use ark_std::{One, UniformRand, Zero};
Expand Down Expand Up @@ -369,21 +369,6 @@ where
self.cs_vp.serialized_size(compress) + self.cf_cs_vp.serialized_size(compress)
}
}
impl<C1, C2, CS1, CS2, const H: bool> CanonicalDeserialize for VerifierParams<C1, C2, CS1, CS2, H>
where
C1: CurveGroup,
C2: CurveGroup,
CS1: CommitmentScheme<C1, H>,
CS2: CommitmentScheme<C2, H>,
{
fn deserialize_with_mode<R: std::io::prelude::Read>(
mut _reader: R,
_compress: ark_serialize::Compress,
_validate: ark_serialize::Validate,
) -> Result<Self, SerializationError> {
unimplemented!("use FoldingScheme::vp_deserialize_with_mode method instead");
}
}

impl<C1, C2, CS1, CS2, const H: bool> VerifierParams<C1, C2, CS1, CS2, H>
where
Expand Down
17 changes: 1 addition & 16 deletions folding-schemes/src/folding/protogalaxy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use ark_r1cs_std::{
use ark_relations::r1cs::{
ConstraintSynthesizer, ConstraintSystem, ConstraintSystemRef, Namespace, SynthesisError,
};
use ark_serialize::{CanonicalDeserialize, CanonicalSerialize, SerializationError, Valid};
use ark_serialize::{CanonicalDeserialize, CanonicalSerialize, Valid};
use ark_std::{
borrow::Borrow, cmp::max, fmt::Debug, log2, marker::PhantomData, rand::RngCore, One, Zero,
};
Expand Down Expand Up @@ -432,21 +432,6 @@ where
self.cs_vp.serialized_size(compress) + self.cf_cs_vp.serialized_size(compress)
}
}
impl<C1, C2, CS1, CS2> CanonicalDeserialize for VerifierParams<C1, C2, CS1, CS2>
where
C1: CurveGroup,
C2: CurveGroup,
CS1: CommitmentScheme<C1>,
CS2: CommitmentScheme<C2>,
{
fn deserialize_with_mode<R: std::io::prelude::Read>(
mut _reader: R,
_compress: ark_serialize::Compress,
_validate: ark_serialize::Validate,
) -> Result<Self, SerializationError> {
unimplemented!("use FoldingScheme::vp_deserialize_with_mode method instead");
}
}

impl<C1, C2, CS1, CS2> VerifierParams<C1, C2, CS1, CS2>
where
Expand Down

0 comments on commit f0f90b0

Please sign in to comment.