pub struct PairingOutput<P>(pub <P as Pairing>::TargetField)
where
P: Pairing;
Expand description
Represents the target group of a pairing. This struct is a wrapper around the field that the target group is embedded in.
Tuple Fields§
§0: <P as Pairing>::TargetField
Trait Implementations§
Source§impl<'a, 'b, P> Add<&'a PairingOutput<P>> for &'b PairingOutput<P>where
P: Pairing,
impl<'a, 'b, P> Add<&'a PairingOutput<P>> for &'b PairingOutput<P>where
P: Pairing,
Source§type Output = PairingOutput<P>
type Output = PairingOutput<P>
The resulting type after applying the
+
operator.Source§fn add(self, other: &'a PairingOutput<P>) -> PairingOutput<P>
fn add(self, other: &'a PairingOutput<P>) -> PairingOutput<P>
Performs the
+
operation. Read moreSource§impl<'a, P> Add<&'a PairingOutput<P>> for PairingOutput<P>where
P: Pairing,
impl<'a, P> Add<&'a PairingOutput<P>> for PairingOutput<P>where
P: Pairing,
Source§type Output = PairingOutput<P>
type Output = PairingOutput<P>
The resulting type after applying the
+
operator.Source§fn add(self, other: &'a PairingOutput<P>) -> PairingOutput<P>
fn add(self, other: &'a PairingOutput<P>) -> PairingOutput<P>
Performs the
+
operation. Read moreSource§impl<'a, 'b, P> Add<&'a mut PairingOutput<P>> for &'b PairingOutput<P>where
P: Pairing,
impl<'a, 'b, P> Add<&'a mut PairingOutput<P>> for &'b PairingOutput<P>where
P: Pairing,
Source§type Output = PairingOutput<P>
type Output = PairingOutput<P>
The resulting type after applying the
+
operator.Source§fn add(self, other: &'a mut PairingOutput<P>) -> PairingOutput<P>
fn add(self, other: &'a mut PairingOutput<P>) -> PairingOutput<P>
Performs the
+
operation. Read moreSource§impl<'a, P> Add<&'a mut PairingOutput<P>> for PairingOutput<P>where
P: Pairing,
impl<'a, P> Add<&'a mut PairingOutput<P>> for PairingOutput<P>where
P: Pairing,
Source§type Output = PairingOutput<P>
type Output = PairingOutput<P>
The resulting type after applying the
+
operator.Source§fn add(self, other: &'a mut PairingOutput<P>) -> PairingOutput<P>
fn add(self, other: &'a mut PairingOutput<P>) -> PairingOutput<P>
Performs the
+
operation. Read moreSource§impl<'b, P> Add<PairingOutput<P>> for &'b PairingOutput<P>where
P: Pairing,
impl<'b, P> Add<PairingOutput<P>> for &'b PairingOutput<P>where
P: Pairing,
Source§type Output = PairingOutput<P>
type Output = PairingOutput<P>
The resulting type after applying the
+
operator.Source§fn add(self, other: PairingOutput<P>) -> PairingOutput<P>
fn add(self, other: PairingOutput<P>) -> PairingOutput<P>
Performs the
+
operation. Read moreSource§impl<P> Add for PairingOutput<P>where
P: Pairing,
impl<P> Add for PairingOutput<P>where
P: Pairing,
Source§type Output = PairingOutput<P>
type Output = PairingOutput<P>
The resulting type after applying the
+
operator.Source§fn add(self, other: PairingOutput<P>) -> PairingOutput<P>
fn add(self, other: PairingOutput<P>) -> PairingOutput<P>
Performs the
+
operation. Read moreSource§impl<'a, P> AddAssign<&'a PairingOutput<P>> for PairingOutput<P>where
P: Pairing,
impl<'a, P> AddAssign<&'a PairingOutput<P>> for PairingOutput<P>where
P: Pairing,
Source§fn add_assign(&mut self, other: &'a PairingOutput<P>)
fn add_assign(&mut self, other: &'a PairingOutput<P>)
Performs the
+=
operation. Read moreSource§impl<'a, P> AddAssign<&'a mut PairingOutput<P>> for PairingOutput<P>where
P: Pairing,
impl<'a, P> AddAssign<&'a mut PairingOutput<P>> for PairingOutput<P>where
P: Pairing,
Source§fn add_assign(&mut self, other: &'a mut PairingOutput<P>)
fn add_assign(&mut self, other: &'a mut PairingOutput<P>)
Performs the
+=
operation. Read moreSource§impl<P> AddAssign for PairingOutput<P>where
P: Pairing,
impl<P> AddAssign for PairingOutput<P>where
P: Pairing,
Source§fn add_assign(&mut self, other: PairingOutput<P>)
fn add_assign(&mut self, other: PairingOutput<P>)
Performs the
+=
operation. Read moreSource§impl<P> AdditiveGroup for PairingOutput<P>where
P: Pairing,
impl<P> AdditiveGroup for PairingOutput<P>where
P: Pairing,
Source§const ZERO: PairingOutput<P> = _
const ZERO: PairingOutput<P> = _
The additive identity of the field.
type Scalar = <P as Pairing>::ScalarField
Source§fn double_in_place(&mut self) -> &mut PairingOutput<P>
fn double_in_place(&mut self) -> &mut PairingOutput<P>
Doubles
self
in place.Source§fn neg_in_place(&mut self) -> &mut Self
fn neg_in_place(&mut self) -> &mut Self
Negates
self
in place.Source§impl<P> CanonicalDeserialize for PairingOutput<P>where
P: Pairing,
impl<P> CanonicalDeserialize for PairingOutput<P>where
P: Pairing,
Source§fn deserialize_with_mode<R>(
reader: R,
compress: Compress,
validate: Validate,
) -> Result<PairingOutput<P>, SerializationError>where
R: Read,
fn deserialize_with_mode<R>(
reader: R,
compress: Compress,
validate: Validate,
) -> Result<PairingOutput<P>, SerializationError>where
R: Read,
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<P> CanonicalSerialize for PairingOutput<P>where
P: Pairing,
impl<P> CanonicalSerialize for PairingOutput<P>where
P: Pairing,
Source§fn serialize_with_mode<W>(
&self,
writer: W,
compress: Compress,
) -> Result<(), SerializationError>where
W: Write,
fn serialize_with_mode<W>(
&self,
writer: W,
compress: Compress,
) -> Result<(), SerializationError>where
W: Write,
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<P> Clone for PairingOutput<P>
impl<P> Clone for PairingOutput<P>
Source§fn clone(&self) -> PairingOutput<P>
fn clone(&self) -> PairingOutput<P>
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<P> Debug for PairingOutput<P>
impl<P> Debug for PairingOutput<P>
Source§impl<P> Default for PairingOutput<P>where
P: Pairing,
impl<P> Default for PairingOutput<P>where
P: Pairing,
Source§fn default() -> PairingOutput<P>
fn default() -> PairingOutput<P>
Returns the “default value” for a type. Read more
Source§impl<P> Display for PairingOutput<P>where
P: Pairing,
impl<P> Display for PairingOutput<P>where
P: Pairing,
Source§impl<P> Hash for PairingOutput<P>
impl<P> Hash for PairingOutput<P>
Source§impl<P, T> Mul<T> for PairingOutput<P>
impl<P, T> Mul<T> for PairingOutput<P>
Source§type Output = PairingOutput<P>
type Output = PairingOutput<P>
The resulting type after applying the
*
operator.Source§fn mul(self, other: T) -> PairingOutput<P>
fn mul(self, other: T) -> PairingOutput<P>
Performs the
*
operation. Read moreSource§impl<P, T> MulAssign<T> for PairingOutput<P>
impl<P, T> MulAssign<T> for PairingOutput<P>
Source§fn mul_assign(&mut self, other: T)
fn mul_assign(&mut self, other: T)
Performs the
*=
operation. Read moreSource§impl<P> Neg for PairingOutput<P>where
P: Pairing,
impl<P> Neg for PairingOutput<P>where
P: Pairing,
Source§type Output = PairingOutput<P>
type Output = PairingOutput<P>
The resulting type after applying the
-
operator.Source§fn neg(self) -> PairingOutput<P>
fn neg(self) -> PairingOutput<P>
Performs the unary
-
operation. Read moreSource§impl<P> Ord for PairingOutput<P>
impl<P> Ord for PairingOutput<P>
Source§fn cmp(&self, other: &PairingOutput<P>) -> Ordering
fn cmp(&self, other: &PairingOutput<P>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<P> PartialEq for PairingOutput<P>
impl<P> PartialEq for PairingOutput<P>
Source§impl<P> PartialOrd for PairingOutput<P>
impl<P> PartialOrd for PairingOutput<P>
Source§impl<P> PrimeGroup for PairingOutput<P>where
P: Pairing,
impl<P> PrimeGroup for PairingOutput<P>where
P: Pairing,
Source§type ScalarField = <P as Pairing>::ScalarField
type ScalarField = <P as Pairing>::ScalarField
The scalar field
F_r
, where r
is the order of this group.Source§fn generator() -> PairingOutput<P>
fn generator() -> PairingOutput<P>
Returns a fixed generator of this group.
Source§fn mul_bigint(&self, other: impl AsRef<[u64]>) -> PairingOutput<P>
fn mul_bigint(&self, other: impl AsRef<[u64]>) -> PairingOutput<P>
Performs scalar multiplication of this element.
Source§fn mul_bits_be(&self, other: impl Iterator<Item = bool>) -> PairingOutput<P>
fn mul_bits_be(&self, other: impl Iterator<Item = bool>) -> PairingOutput<P>
Computes
other * self
, where other
is a big-endian
bit representation of some integer.Source§impl<P> ScalarMul for PairingOutput<P>where
P: Pairing,
impl<P> ScalarMul for PairingOutput<P>where
P: Pairing,
const NEGATION_IS_CHEAP: bool = <P::TargetField>::INVERSE_IS_FAST
type MulBase = PairingOutput<P>
fn batch_convert_to_mul_base( bases: &[PairingOutput<P>], ) -> Vec<<PairingOutput<P> as ScalarMul>::MulBase>
Source§fn batch_mul(self, v: &[Self::ScalarField]) -> Vec<Self::MulBase>
fn batch_mul(self, v: &[Self::ScalarField]) -> Vec<Self::MulBase>
Compute the vector v[0].G, v[1].G, …, v[n-1].G, given: Read more
Source§fn batch_mul_with_preprocessing(
table: &BatchMulPreprocessing<Self>,
v: &[Self::ScalarField],
) -> Vec<Self::MulBase>
fn batch_mul_with_preprocessing( table: &BatchMulPreprocessing<Self>, v: &[Self::ScalarField], ) -> Vec<Self::MulBase>
Compute the vector v[0].G, v[1].G, …, v[n-1].G, given: Read more
Source§impl<'a, 'b, P> Sub<&'a PairingOutput<P>> for &'b PairingOutput<P>where
P: Pairing,
impl<'a, 'b, P> Sub<&'a PairingOutput<P>> for &'b PairingOutput<P>where
P: Pairing,
Source§type Output = PairingOutput<P>
type Output = PairingOutput<P>
The resulting type after applying the
-
operator.Source§fn sub(self, other: &'a PairingOutput<P>) -> PairingOutput<P>
fn sub(self, other: &'a PairingOutput<P>) -> PairingOutput<P>
Performs the
-
operation. Read moreSource§impl<'a, P> Sub<&'a PairingOutput<P>> for PairingOutput<P>where
P: Pairing,
impl<'a, P> Sub<&'a PairingOutput<P>> for PairingOutput<P>where
P: Pairing,
Source§type Output = PairingOutput<P>
type Output = PairingOutput<P>
The resulting type after applying the
-
operator.Source§fn sub(self, other: &'a PairingOutput<P>) -> PairingOutput<P>
fn sub(self, other: &'a PairingOutput<P>) -> PairingOutput<P>
Performs the
-
operation. Read moreSource§impl<'a, 'b, P> Sub<&'a mut PairingOutput<P>> for &'b PairingOutput<P>where
P: Pairing,
impl<'a, 'b, P> Sub<&'a mut PairingOutput<P>> for &'b PairingOutput<P>where
P: Pairing,
Source§type Output = PairingOutput<P>
type Output = PairingOutput<P>
The resulting type after applying the
-
operator.Source§fn sub(self, other: &'a mut PairingOutput<P>) -> PairingOutput<P>
fn sub(self, other: &'a mut PairingOutput<P>) -> PairingOutput<P>
Performs the
-
operation. Read moreSource§impl<'a, P> Sub<&'a mut PairingOutput<P>> for PairingOutput<P>where
P: Pairing,
impl<'a, P> Sub<&'a mut PairingOutput<P>> for PairingOutput<P>where
P: Pairing,
Source§type Output = PairingOutput<P>
type Output = PairingOutput<P>
The resulting type after applying the
-
operator.Source§fn sub(self, other: &'a mut PairingOutput<P>) -> PairingOutput<P>
fn sub(self, other: &'a mut PairingOutput<P>) -> PairingOutput<P>
Performs the
-
operation. Read moreSource§impl<'b, P> Sub<PairingOutput<P>> for &'b PairingOutput<P>where
P: Pairing,
impl<'b, P> Sub<PairingOutput<P>> for &'b PairingOutput<P>where
P: Pairing,
Source§type Output = PairingOutput<P>
type Output = PairingOutput<P>
The resulting type after applying the
-
operator.Source§fn sub(self, other: PairingOutput<P>) -> PairingOutput<P>
fn sub(self, other: PairingOutput<P>) -> PairingOutput<P>
Performs the
-
operation. Read moreSource§impl<P> Sub for PairingOutput<P>where
P: Pairing,
impl<P> Sub for PairingOutput<P>where
P: Pairing,
Source§type Output = PairingOutput<P>
type Output = PairingOutput<P>
The resulting type after applying the
-
operator.Source§fn sub(self, other: PairingOutput<P>) -> PairingOutput<P>
fn sub(self, other: PairingOutput<P>) -> PairingOutput<P>
Performs the
-
operation. Read moreSource§impl<'a, P> SubAssign<&'a PairingOutput<P>> for PairingOutput<P>where
P: Pairing,
impl<'a, P> SubAssign<&'a PairingOutput<P>> for PairingOutput<P>where
P: Pairing,
Source§fn sub_assign(&mut self, other: &'a PairingOutput<P>)
fn sub_assign(&mut self, other: &'a PairingOutput<P>)
Performs the
-=
operation. Read moreSource§impl<'a, P> SubAssign<&'a mut PairingOutput<P>> for PairingOutput<P>where
P: Pairing,
impl<'a, P> SubAssign<&'a mut PairingOutput<P>> for PairingOutput<P>where
P: Pairing,
Source§fn sub_assign(&mut self, other: &'a mut PairingOutput<P>)
fn sub_assign(&mut self, other: &'a mut PairingOutput<P>)
Performs the
-=
operation. Read moreSource§impl<P> SubAssign for PairingOutput<P>where
P: Pairing,
impl<P> SubAssign for PairingOutput<P>where
P: Pairing,
Source§fn sub_assign(&mut self, other: PairingOutput<P>)
fn sub_assign(&mut self, other: PairingOutput<P>)
Performs the
-=
operation. Read moreSource§impl<'a, P> Sum<&'a PairingOutput<P>> for PairingOutput<P>where
P: Pairing,
impl<'a, P> Sum<&'a PairingOutput<P>> for PairingOutput<P>where
P: Pairing,
Source§fn sum<I>(iter: I) -> PairingOutput<P>where
I: Iterator<Item = &'a PairingOutput<P>>,
fn sum<I>(iter: I) -> PairingOutput<P>where
I: Iterator<Item = &'a PairingOutput<P>>,
Takes an iterator and generates
Self
from the elements by “summing up”
the items.Source§impl<P> Sum for PairingOutput<P>where
P: Pairing,
impl<P> Sum for PairingOutput<P>where
P: Pairing,
Source§fn sum<I>(iter: I) -> PairingOutput<P>where
I: Iterator<Item = PairingOutput<P>>,
fn sum<I>(iter: I) -> PairingOutput<P>where
I: Iterator<Item = PairingOutput<P>>,
Takes an iterator and generates
Self
from the elements by “summing up”
the items.Source§impl<P> Valid for PairingOutput<P>where
P: Pairing,
impl<P> Valid for PairingOutput<P>where
P: Pairing,
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>(
batch: impl Iterator<Item = &'a Self> + Send,
) -> Result<(), SerializationError>where
Self: 'a,
Source§impl<P> VariableBaseMSM for PairingOutput<P>where
P: Pairing,
impl<P> VariableBaseMSM for PairingOutput<P>where
P: Pairing,
Source§fn msm_unchecked(bases: &[Self::MulBase], scalars: &[Self::ScalarField]) -> Self
fn msm_unchecked(bases: &[Self::MulBase], scalars: &[Self::ScalarField]) -> Self
Computes an inner product between the
PrimeField
elements in scalars
and the corresponding group elements in bases
. Read moreSource§fn msm(
bases: &[Self::MulBase],
scalars: &[Self::ScalarField],
) -> Result<Self, usize>
fn msm( bases: &[Self::MulBase], scalars: &[Self::ScalarField], ) -> Result<Self, usize>
Performs multi-scalar multiplication. Read more
Source§fn msm_bigint(
bases: &[Self::MulBase],
bigints: &[<Self::ScalarField as PrimeField>::BigInt],
) -> Self
fn msm_bigint( bases: &[Self::MulBase], bigints: &[<Self::ScalarField as PrimeField>::BigInt], ) -> Self
Optimized implementation of multi-scalar multiplication.
Source§impl<P> Zero for PairingOutput<P>where
P: Pairing,
impl<P> Zero for PairingOutput<P>where
P: Pairing,
Source§fn zero() -> PairingOutput<P>
fn zero() -> PairingOutput<P>
The identity element, or “zero”, of the group is the identity element of the multiplicative group of the underlying field, i.e., P::TargetField::one()
.
Source§impl<P> Zeroize for PairingOutput<P>where
P: Pairing,
impl<P> Zeroize for PairingOutput<P>where
P: Pairing,
impl<P> Copy for PairingOutput<P>
impl<P> Eq for PairingOutput<P>
Auto Trait Implementations§
impl<P> Freeze for PairingOutput<P>
impl<P> RefUnwindSafe for PairingOutput<P>
impl<P> Send for PairingOutput<P>
impl<P> Sync for PairingOutput<P>
impl<P> Unpin for PairingOutput<P>
impl<P> UnwindSafe for PairingOutput<P>
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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