Struct smc_range_proof::prelude::CLSRangeProof
source · pub struct CLSRangeProof<E: Pairing> {
pub base: u16,
pub pok_sigs: Vec<PoKOfSignatureG1<E>>,
pub D: E::G1Affine,
pub resp_r: E::ScalarField,
}
Fields§
§base: u16
§pok_sigs: Vec<PoKOfSignatureG1<E>>
§D: E::G1Affine
§resp_r: E::ScalarField
Implementations§
source§impl<E: Pairing> CLSRangeProof<E>
impl<E: Pairing> CLSRangeProof<E>
pub fn verify( &self, commitment: &E::G1Affine, challenge: &E::ScalarField, min: u64, max: u64, comm_key: &MemberCommitmentKey<E::G1Affine>, params: impl Into<SetMembershipCheckParamsWithPairing<E>>, ) -> Result<(), SmcRangeProofError>
pub fn verify_given_randomized_pairing_checker( &self, commitment: &E::G1Affine, challenge: &E::ScalarField, min: u64, max: u64, comm_key: &MemberCommitmentKey<E::G1Affine>, params: impl Into<SetMembershipCheckParamsWithPairing<E>>, pairing_checker: &mut RandomizedPairingChecker<E>, ) -> Result<(), SmcRangeProofError>
pub fn verify_except_pairings( &self, commitment: &E::G1Affine, challenge: &E::ScalarField, min: u64, max: u64, comm_key: &MemberCommitmentKey<E::G1Affine>, params: &SetMembershipCheckParamsWithPairing<E>, ) -> Result<(), SmcRangeProofError>
pub fn challenge_contribution<W: Write>( &self, commitment: &E::G1Affine, comm_key: &MemberCommitmentKey<E::G1Affine>, params: &SetMembershipCheckParams<E>, writer: W, ) -> Result<(), SmcRangeProofError>
Trait Implementations§
source§impl<E: Pairing> CanonicalDeserialize for CLSRangeProof<E>
impl<E: Pairing> CanonicalDeserialize for CLSRangeProof<E>
source§fn deserialize_with_mode<R: Read>(
reader: R,
compress: Compress,
validate: Validate,
) -> Result<Self, SerializationError>
fn deserialize_with_mode<R: Read>( reader: R, compress: Compress, validate: Validate, ) -> Result<Self, SerializationError>
The general deserialize method that takes in customization flags.
fn deserialize_compressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_compressed_unchecked<R>(
reader: R,
) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed_unchecked<R>(
reader: R,
) -> Result<Self, SerializationError>where
R: Read,
source§impl<E: Pairing> CanonicalSerialize for CLSRangeProof<E>
impl<E: Pairing> CanonicalSerialize for CLSRangeProof<E>
source§fn serialize_with_mode<W: Write>(
&self,
writer: W,
compress: Compress,
) -> Result<(), SerializationError>
fn serialize_with_mode<W: Write>( &self, writer: W, compress: Compress, ) -> Result<(), SerializationError>
The general serialize method that takes in customization flags.
fn serialized_size(&self, compress: Compress) -> usize
fn serialize_compressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn compressed_size(&self) -> usize
fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn uncompressed_size(&self) -> usize
source§impl<E: Clone + Pairing> Clone for CLSRangeProof<E>
impl<E: Clone + Pairing> Clone for CLSRangeProof<E>
source§fn clone(&self) -> CLSRangeProof<E>
fn clone(&self) -> CLSRangeProof<E>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<E: PartialEq + Pairing> PartialEq for CLSRangeProof<E>
impl<E: PartialEq + Pairing> PartialEq for CLSRangeProof<E>
source§fn eq(&self, other: &CLSRangeProof<E>) -> bool
fn eq(&self, other: &CLSRangeProof<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<E: Pairing> Valid for CLSRangeProof<E>
impl<E: Pairing> Valid for CLSRangeProof<E>
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>(
batch: impl Iterator<Item = &'a Self> + Send,
) -> Result<(), SerializationError>where
Self: 'a,
impl<E: Eq + Pairing> Eq for CLSRangeProof<E>
impl<E: Pairing> StructuralPartialEq for CLSRangeProof<E>
Auto Trait Implementations§
impl<E> Freeze for CLSRangeProof<E>
impl<E> RefUnwindSafe for CLSRangeProof<E>
impl<E> Send for CLSRangeProof<E>
impl<E> Sync for CLSRangeProof<E>
impl<E> Unpin for CLSRangeProof<E>
impl<E> UnwindSafe for CLSRangeProof<E>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
fn hash<H>(&self) -> GenericArray<u8, <H as OutputSizeUser>::OutputSize>where
H: Digest,
fn hash_uncompressed<H>(
&self,
) -> GenericArray<u8, <H as OutputSizeUser>::OutputSize>where
H: Digest,
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more