[−][src]Struct jubjub::SubgroupPoint
This represents a point in the prime-order subgroup of Jubjub, in extended coordinates.
Implementations
impl SubgroupPoint
[src]
pub const fn from_raw_unchecked(u: Fq, v: Fq) -> Self
[src]
Constructs an AffinePoint given u
and v
without checking that the point is on
the curve or in the prime-order subgroup.
This should only be used for hard-coding constants (e.g. fixed generators); in all
other cases, use SubgroupPoint::from_bytes
instead.
Trait Implementations
impl<'a, 'b> Add<&'b SubgroupPoint> for &'a ExtendedPoint
[src]
type Output = ExtendedPoint
The resulting type after applying the +
operator.
fn add(self, other: &'b SubgroupPoint) -> ExtendedPoint
[src]
impl<'b> Add<&'b SubgroupPoint> for ExtendedPoint
[src]
type Output = ExtendedPoint
The resulting type after applying the +
operator.
fn add(self, rhs: &'b SubgroupPoint) -> ExtendedPoint
[src]
impl<'a, 'b> Add<&'b SubgroupPoint> for &'a SubgroupPoint
[src]
type Output = SubgroupPoint
The resulting type after applying the +
operator.
fn add(self, other: &'b SubgroupPoint) -> SubgroupPoint
[src]
impl<'b> Add<&'b SubgroupPoint> for SubgroupPoint
[src]
type Output = SubgroupPoint
The resulting type after applying the +
operator.
fn add(self, rhs: &'b SubgroupPoint) -> SubgroupPoint
[src]
impl<'a> Add<SubgroupPoint> for &'a ExtendedPoint
[src]
type Output = ExtendedPoint
The resulting type after applying the +
operator.
fn add(self, rhs: SubgroupPoint) -> ExtendedPoint
[src]
impl Add<SubgroupPoint> for ExtendedPoint
[src]
type Output = ExtendedPoint
The resulting type after applying the +
operator.
fn add(self, rhs: SubgroupPoint) -> ExtendedPoint
[src]
impl<'a> Add<SubgroupPoint> for &'a SubgroupPoint
[src]
type Output = SubgroupPoint
The resulting type after applying the +
operator.
fn add(self, rhs: SubgroupPoint) -> SubgroupPoint
[src]
impl Add<SubgroupPoint> for SubgroupPoint
[src]
type Output = SubgroupPoint
The resulting type after applying the +
operator.
fn add(self, rhs: SubgroupPoint) -> SubgroupPoint
[src]
impl<'b> AddAssign<&'b SubgroupPoint> for ExtendedPoint
[src]
fn add_assign(&mut self, rhs: &'b SubgroupPoint)
[src]
impl<'b> AddAssign<&'b SubgroupPoint> for SubgroupPoint
[src]
fn add_assign(&mut self, rhs: &'b SubgroupPoint)
[src]
impl AddAssign<SubgroupPoint> for ExtendedPoint
[src]
fn add_assign(&mut self, rhs: SubgroupPoint)
[src]
impl AddAssign<SubgroupPoint> for SubgroupPoint
[src]
fn add_assign(&mut self, rhs: SubgroupPoint)
[src]
impl Clone for SubgroupPoint
[src]
fn clone(&self) -> SubgroupPoint
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl ConditionallySelectable for SubgroupPoint
[src]
fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self
[src]
fn conditional_assign(&mut self, other: &Self, choice: Choice)
[src]
fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)
[src]
impl Copy for SubgroupPoint
[src]
impl Debug for SubgroupPoint
[src]
impl Default for SubgroupPoint
[src]
fn default() -> SubgroupPoint
[src]
impl Display for SubgroupPoint
[src]
impl Eq for SubgroupPoint
[src]
impl<'a> From<&'a SubgroupPoint> for &'a ExtendedPoint
[src]
fn from(val: &'a SubgroupPoint) -> &'a ExtendedPoint
[src]
impl From<SubgroupPoint> for ExtendedPoint
[src]
fn from(val: SubgroupPoint) -> ExtendedPoint
[src]
impl Group for SubgroupPoint
[src]
type Scalar = Fr
Scalars modulo the order of this group's scalar field.
fn random(rng: impl RngCore) -> Self
[src]
fn identity() -> Self
[src]
fn generator() -> Self
[src]
fn is_identity(&self) -> Choice
[src]
#[must_use]fn double(&self) -> Self
[src]
impl GroupEncoding for SubgroupPoint
[src]
type Repr = [u8; 32]
The encoding of group elements. Read more
fn from_bytes(bytes: &Self::Repr) -> CtOption<Self>
[src]
fn from_bytes_unchecked(bytes: &Self::Repr) -> CtOption<Self>
[src]
fn to_bytes(&self) -> Self::Repr
[src]
impl<'a, 'b> Mul<&'b Fr> for &'a SubgroupPoint
[src]
type Output = SubgroupPoint
The resulting type after applying the *
operator.
fn mul(self, other: &'b Fr) -> SubgroupPoint
[src]
impl<'b> Mul<&'b Fr> for SubgroupPoint
[src]
type Output = SubgroupPoint
The resulting type after applying the *
operator.
fn mul(self, rhs: &'b Fr) -> SubgroupPoint
[src]
impl<'a> Mul<Fr> for &'a SubgroupPoint
[src]
type Output = SubgroupPoint
The resulting type after applying the *
operator.
fn mul(self, rhs: Fr) -> SubgroupPoint
[src]
impl Mul<Fr> for SubgroupPoint
[src]
type Output = SubgroupPoint
The resulting type after applying the *
operator.
fn mul(self, rhs: Fr) -> SubgroupPoint
[src]
impl<'b> MulAssign<&'b Fr> for SubgroupPoint
[src]
fn mul_assign(&mut self, rhs: &'b Fr)
[src]
impl MulAssign<Fr> for SubgroupPoint
[src]
fn mul_assign(&mut self, rhs: Fr)
[src]
impl Neg for SubgroupPoint
[src]
type Output = SubgroupPoint
The resulting type after applying the -
operator.
fn neg(self) -> SubgroupPoint
[src]
impl<'_> Neg for &'_ SubgroupPoint
[src]
type Output = SubgroupPoint
The resulting type after applying the -
operator.
fn neg(self) -> SubgroupPoint
[src]
impl PartialEq<SubgroupPoint> for SubgroupPoint
[src]
fn eq(&self, other: &SubgroupPoint) -> bool
[src]
fn ne(&self, other: &SubgroupPoint) -> bool
[src]
impl PrimeGroup for SubgroupPoint
[src]
impl StructuralEq for SubgroupPoint
[src]
impl StructuralPartialEq for SubgroupPoint
[src]
impl<'a, 'b> Sub<&'b SubgroupPoint> for &'a ExtendedPoint
[src]
type Output = ExtendedPoint
The resulting type after applying the -
operator.
fn sub(self, other: &'b SubgroupPoint) -> ExtendedPoint
[src]
impl<'b> Sub<&'b SubgroupPoint> for ExtendedPoint
[src]
type Output = ExtendedPoint
The resulting type after applying the -
operator.
fn sub(self, rhs: &'b SubgroupPoint) -> ExtendedPoint
[src]
impl<'a, 'b> Sub<&'b SubgroupPoint> for &'a SubgroupPoint
[src]
type Output = SubgroupPoint
The resulting type after applying the -
operator.
fn sub(self, other: &'b SubgroupPoint) -> SubgroupPoint
[src]
impl<'b> Sub<&'b SubgroupPoint> for SubgroupPoint
[src]
type Output = SubgroupPoint
The resulting type after applying the -
operator.
fn sub(self, rhs: &'b SubgroupPoint) -> SubgroupPoint
[src]
impl<'a> Sub<SubgroupPoint> for &'a ExtendedPoint
[src]
type Output = ExtendedPoint
The resulting type after applying the -
operator.
fn sub(self, rhs: SubgroupPoint) -> ExtendedPoint
[src]
impl Sub<SubgroupPoint> for ExtendedPoint
[src]
type Output = ExtendedPoint
The resulting type after applying the -
operator.
fn sub(self, rhs: SubgroupPoint) -> ExtendedPoint
[src]
impl<'a> Sub<SubgroupPoint> for &'a SubgroupPoint
[src]
type Output = SubgroupPoint
The resulting type after applying the -
operator.
fn sub(self, rhs: SubgroupPoint) -> SubgroupPoint
[src]
impl Sub<SubgroupPoint> for SubgroupPoint
[src]
type Output = SubgroupPoint
The resulting type after applying the -
operator.
fn sub(self, rhs: SubgroupPoint) -> SubgroupPoint
[src]
impl<'b> SubAssign<&'b SubgroupPoint> for ExtendedPoint
[src]
fn sub_assign(&mut self, rhs: &'b SubgroupPoint)
[src]
impl<'b> SubAssign<&'b SubgroupPoint> for SubgroupPoint
[src]
fn sub_assign(&mut self, rhs: &'b SubgroupPoint)
[src]
impl SubAssign<SubgroupPoint> for ExtendedPoint
[src]
fn sub_assign(&mut self, rhs: SubgroupPoint)
[src]
impl SubAssign<SubgroupPoint> for SubgroupPoint
[src]
fn sub_assign(&mut self, rhs: SubgroupPoint)
[src]
impl<T> Sum<T> for SubgroupPoint where
T: Borrow<SubgroupPoint>,
[src]
T: Borrow<SubgroupPoint>,
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> ConditionallyNegatable for T where
T: ConditionallySelectable,
&'a T: for<'a> Neg,
<&'a T as Neg>::Output == T,
[src]
T: ConditionallySelectable,
&'a T: for<'a> Neg,
<&'a T as Neg>::Output == T,
fn conditional_negate(&mut self, choice: Choice)
[src]
impl<T> Conv for T
impl<T> FmtForward for T
fn fmt_binary(self) -> FmtBinary<Self> where
Self: Binary,
Self: Binary,
fn fmt_display(self) -> FmtDisplay<Self> where
Self: Display,
Self: Display,
fn fmt_lower_exp(self) -> FmtLowerExp<Self> where
Self: LowerExp,
Self: LowerExp,
fn fmt_lower_hex(self) -> FmtLowerHex<Self> where
Self: LowerHex,
Self: LowerHex,
fn fmt_octal(self) -> FmtOctal<Self> where
Self: Octal,
Self: Octal,
fn fmt_pointer(self) -> FmtPointer<Self> where
Self: Pointer,
Self: Pointer,
fn fmt_upper_exp(self) -> FmtUpperExp<Self> where
Self: UpperExp,
Self: UpperExp,
fn fmt_upper_hex(self) -> FmtUpperHex<Self> where
Self: UpperHex,
Self: UpperHex,
impl<T> From<T> for T
[src]
impl<T, Rhs, Output> GroupOps<Rhs, Output> for T where
T: Add<Rhs, Output = Output> + Sub<Rhs, Output = Output> + AddAssign<Rhs> + SubAssign<Rhs>,
[src]
T: Add<Rhs, Output = Output> + Sub<Rhs, Output = Output> + AddAssign<Rhs> + SubAssign<Rhs>,
impl<T, Rhs, Output> GroupOpsOwned<Rhs, Output> for T where
T: for<'r> GroupOps<&'r Rhs, Output>,
[src]
T: for<'r> GroupOps<&'r Rhs, Output>,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pipe for T
impl<T> PipeAsRef for T
fn pipe_as_ref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
R: 'a,
Self: AsRef<T>,
T: 'a,
R: 'a,
Self: AsRef<T>,
T: 'a,
fn pipe_as_mut<'a, T, R>(&'a mut self, func: impl FnOnce(&'a mut T) -> R) -> R where
R: 'a,
Self: AsMut<T>,
T: 'a,
R: 'a,
Self: AsMut<T>,
T: 'a,
impl<T> PipeBorrow for T
fn pipe_borrow<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
R: 'a,
Self: Borrow<T>,
T: 'a,
R: 'a,
Self: Borrow<T>,
T: 'a,
fn pipe_borrow_mut<'a, T, R>(
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
R: 'a,
Self: BorrowMut<T>,
T: 'a,
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
R: 'a,
Self: BorrowMut<T>,
T: 'a,
impl<T> PipeDeref for T
fn pipe_deref<'a, R>(&'a self, func: impl FnOnce(&'a Self::Target) -> R) -> R where
R: 'a,
Self: Deref,
R: 'a,
Self: Deref,
fn pipe_deref_mut<'a, R>(
&'a mut self,
func: impl FnOnce(&'a mut Self::Target) -> R
) -> R where
R: 'a,
Self: DerefMut,
&'a mut self,
func: impl FnOnce(&'a mut Self::Target) -> R
) -> R where
R: 'a,
Self: DerefMut,
impl<T> PipeRef for T
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R where
R: 'a,
R: 'a,
fn pipe_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R where
R: 'a,
R: 'a,
impl<T, Rhs, Output> ScalarMul<Rhs, Output> for T where
T: Mul<Rhs, Output = Output> + MulAssign<Rhs>,
[src]
T: Mul<Rhs, Output = Output> + MulAssign<Rhs>,
impl<T, Rhs, Output> ScalarMulOwned<Rhs, Output> for T where
T: for<'r> ScalarMul<&'r Rhs, Output>,
[src]
T: for<'r> ScalarMul<&'r Rhs, Output>,
impl<T> Tap for T
fn tap<F, R>(self, func: F) -> Self where
F: FnOnce(&Self) -> R,
F: FnOnce(&Self) -> R,
fn tap_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&Self) -> R,
F: FnOnce(&Self) -> R,
fn tap_mut<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self) -> R,
F: FnOnce(&mut Self) -> R,
fn tap_mut_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self) -> R,
F: FnOnce(&mut Self) -> R,
impl<T, U> TapAsRef<U> for T where
U: ?Sized,
U: ?Sized,
fn tap_ref<F, R>(self, func: F) -> Self where
F: FnOnce(&T) -> R,
Self: AsRef<T>,
F: FnOnce(&T) -> R,
Self: AsRef<T>,
fn tap_ref_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&T) -> R,
Self: AsRef<T>,
F: FnOnce(&T) -> R,
Self: AsRef<T>,
fn tap_ref_mut<F, R>(self, func: F) -> Self where
F: FnOnce(&mut T) -> R,
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
Self: AsMut<T>,
fn tap_ref_mut_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&mut T) -> R,
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
Self: AsMut<T>,
impl<T, U> TapBorrow<U> for T where
U: ?Sized,
U: ?Sized,
fn tap_borrow<F, R>(self, func: F) -> Self where
F: FnOnce(&T) -> R,
Self: Borrow<T>,
F: FnOnce(&T) -> R,
Self: Borrow<T>,
fn tap_borrow_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&T) -> R,
Self: Borrow<T>,
F: FnOnce(&T) -> R,
Self: Borrow<T>,
fn tap_borrow_mut<F, R>(self, func: F) -> Self where
F: FnOnce(&mut T) -> R,
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
Self: BorrowMut<T>,
fn tap_borrow_mut_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&mut T) -> R,
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
Self: BorrowMut<T>,
impl<T> TapDeref for T
fn tap_deref<F, R>(self, func: F) -> Self where
F: FnOnce(&Self::Target) -> R,
Self: Deref,
F: FnOnce(&Self::Target) -> R,
Self: Deref,
fn tap_deref_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&Self::Target) -> R,
Self: Deref,
F: FnOnce(&Self::Target) -> R,
Self: Deref,
fn tap_deref_mut<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self::Target) -> R,
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
Self: DerefMut,
fn tap_deref_mut_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self::Target) -> R,
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
Self: DerefMut,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> TryConv for T
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,