Struct jub_jub::JubjubAffine
source · pub struct JubjubAffine { /* private fields */ }
Expand description
Twisted Edwards curve Jubjub affine coordinate
Implementations§
source§impl JubjubAffine
impl JubjubAffine
pub const fn from_raw_unchecked(x: Fr, y: Fr) -> JubjubAffine
Trait Implementations§
source§impl<'a, 'b> Add<&'b JubjubAffine> for &'a JubjubAffine
impl<'a, 'b> Add<&'b JubjubAffine> for &'a JubjubAffine
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
+
operator.source§fn add(self, rhs: &'b JubjubAffine) -> JubjubExtended
fn add(self, rhs: &'b JubjubAffine) -> JubjubExtended
Performs the
+
operation. Read moresource§impl<'a, 'b> Add<&'b JubjubAffine> for &'a JubjubExtended
impl<'a, 'b> Add<&'b JubjubAffine> for &'a JubjubExtended
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
+
operator.source§fn add(self, rhs: &'b JubjubAffine) -> JubjubExtended
fn add(self, rhs: &'b JubjubAffine) -> JubjubExtended
Performs the
+
operation. Read moresource§impl<'b> Add<&'b JubjubAffine> for JubjubAffine
impl<'b> Add<&'b JubjubAffine> for JubjubAffine
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
+
operator.source§fn add(self, rhs: &'b JubjubAffine) -> JubjubExtended
fn add(self, rhs: &'b JubjubAffine) -> JubjubExtended
Performs the
+
operation. Read moresource§impl<'b> Add<&'b JubjubAffine> for JubjubExtended
impl<'b> Add<&'b JubjubAffine> for JubjubExtended
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
+
operator.source§fn add(self, rhs: &'b JubjubAffine) -> JubjubExtended
fn add(self, rhs: &'b JubjubAffine) -> JubjubExtended
Performs the
+
operation. Read moresource§impl<'a, 'b> Add<&'b JubjubExtended> for &'a JubjubAffine
impl<'a, 'b> Add<&'b JubjubExtended> for &'a JubjubAffine
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
+
operator.source§fn add(self, rhs: &'b JubjubExtended) -> JubjubExtended
fn add(self, rhs: &'b JubjubExtended) -> JubjubExtended
Performs the
+
operation. Read moresource§impl<'b> Add<&'b JubjubExtended> for JubjubAffine
impl<'b> Add<&'b JubjubExtended> for JubjubAffine
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
+
operator.source§fn add(self, rhs: &'b JubjubExtended) -> JubjubExtended
fn add(self, rhs: &'b JubjubExtended) -> JubjubExtended
Performs the
+
operation. Read moresource§impl<'a> Add<JubjubAffine> for &'a JubjubAffine
impl<'a> Add<JubjubAffine> for &'a JubjubAffine
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
+
operator.source§fn add(self, rhs: JubjubAffine) -> JubjubExtended
fn add(self, rhs: JubjubAffine) -> JubjubExtended
Performs the
+
operation. Read moresource§impl<'a> Add<JubjubAffine> for &'a JubjubExtended
impl<'a> Add<JubjubAffine> for &'a JubjubExtended
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
+
operator.source§fn add(self, rhs: JubjubAffine) -> JubjubExtended
fn add(self, rhs: JubjubAffine) -> JubjubExtended
Performs the
+
operation. Read moresource§impl Add<JubjubAffine> for JubjubExtended
impl Add<JubjubAffine> for JubjubExtended
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
+
operator.source§fn add(self, rhs: JubjubAffine) -> JubjubExtended
fn add(self, rhs: JubjubAffine) -> JubjubExtended
Performs the
+
operation. Read moresource§impl<'a> Add<JubjubExtended> for &'a JubjubAffine
impl<'a> Add<JubjubExtended> for &'a JubjubAffine
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
+
operator.source§fn add(self, rhs: JubjubExtended) -> JubjubExtended
fn add(self, rhs: JubjubExtended) -> JubjubExtended
Performs the
+
operation. Read moresource§impl Add<JubjubExtended> for JubjubAffine
impl Add<JubjubExtended> for JubjubAffine
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
+
operator.source§fn add(self, rhs: JubjubExtended) -> JubjubExtended
fn add(self, rhs: JubjubExtended) -> JubjubExtended
Performs the
+
operation. Read moresource§impl Add for JubjubAffine
impl Add for JubjubAffine
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
+
operator.source§impl<'a> AddAssign<&'a JubjubAffine> for JubjubExtended
impl<'a> AddAssign<&'a JubjubAffine> for JubjubExtended
source§fn add_assign(&mut self, rhs: &'a JubjubAffine)
fn add_assign(&mut self, rhs: &'a JubjubAffine)
Performs the
+=
operation. Read moresource§impl AddAssign<JubjubAffine> for JubjubExtended
impl AddAssign<JubjubAffine> for JubjubExtended
source§fn add_assign(&mut self, rhs: JubjubAffine)
fn add_assign(&mut self, rhs: JubjubAffine)
Performs the
+=
operation. Read moresource§impl Clone for JubjubAffine
impl Clone for JubjubAffine
source§fn clone(&self) -> JubjubAffine
fn clone(&self) -> JubjubAffine
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 Debug for JubjubAffine
impl Debug for JubjubAffine
source§impl Decode for JubjubAffine
impl Decode for JubjubAffine
source§impl Default for JubjubAffine
impl Default for JubjubAffine
source§impl<'de> Deserialize<'de> for JubjubAffine
impl<'de> Deserialize<'de> for JubjubAffine
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Encode for JubjubAffine
impl Encode for JubjubAffine
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
Convert self to a slice and append it to the destination.
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl From<JubjubAffine> for JubjubExtended
impl From<JubjubAffine> for JubjubExtended
source§fn from(p: JubjubAffine) -> JubjubExtended
fn from(p: JubjubAffine) -> JubjubExtended
Converts to this type from the input type.
source§impl From<JubjubExtended> for JubjubAffine
impl From<JubjubExtended> for JubjubAffine
source§fn from(p: JubjubExtended) -> JubjubAffine
fn from(p: JubjubExtended) -> JubjubAffine
Converts to this type from the input type.
source§impl<'a, 'b> Mul<&'b Fp> for &'a JubjubAffine
impl<'a, 'b> Mul<&'b Fp> for &'a JubjubAffine
source§impl<'a> Mul<&'a Fp> for JubjubAffine
impl<'a> Mul<&'a Fp> for JubjubAffine
source§impl<'a, 'b> Mul<&'b JubjubAffine> for &'a Fp
impl<'a, 'b> Mul<&'b JubjubAffine> for &'a Fp
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
*
operator.source§impl<'a> Mul<&'a JubjubAffine> for Fp
impl<'a> Mul<&'a JubjubAffine> for Fp
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
*
operator.source§impl<'a> Mul<Fp> for &'a JubjubAffine
impl<'a> Mul<Fp> for &'a JubjubAffine
source§impl Mul<Fp> for JubjubAffine
impl Mul<Fp> for JubjubAffine
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
*
operator.source§impl<'a> Mul<JubjubAffine> for &'a Fp
impl<'a> Mul<JubjubAffine> for &'a Fp
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
*
operator.source§impl Mul<JubjubAffine> for Fp
impl Mul<JubjubAffine> for Fp
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
*
operator.source§fn mul(self, rhs: JubjubAffine) -> JubjubExtended
fn mul(self, rhs: JubjubAffine) -> JubjubExtended
Performs the
*
operation. Read moresource§impl Neg for JubjubAffine
impl Neg for JubjubAffine
source§impl PartialEq for JubjubAffine
impl PartialEq for JubjubAffine
source§impl Serialize for JubjubAffine
impl Serialize for JubjubAffine
source§impl SigUtils<32> for JubjubAffine
impl SigUtils<32> for JubjubAffine
source§impl<'a, 'b> Sub<&'b JubjubAffine> for &'a JubjubAffine
impl<'a, 'b> Sub<&'b JubjubAffine> for &'a JubjubAffine
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
-
operator.source§fn sub(self, rhs: &'b JubjubAffine) -> JubjubExtended
fn sub(self, rhs: &'b JubjubAffine) -> JubjubExtended
Performs the
-
operation. Read moresource§impl<'a, 'b> Sub<&'b JubjubAffine> for &'a JubjubExtended
impl<'a, 'b> Sub<&'b JubjubAffine> for &'a JubjubExtended
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
-
operator.source§fn sub(self, rhs: &'b JubjubAffine) -> JubjubExtended
fn sub(self, rhs: &'b JubjubAffine) -> JubjubExtended
Performs the
-
operation. Read moresource§impl<'b> Sub<&'b JubjubAffine> for JubjubAffine
impl<'b> Sub<&'b JubjubAffine> for JubjubAffine
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
-
operator.source§fn sub(self, rhs: &'b JubjubAffine) -> JubjubExtended
fn sub(self, rhs: &'b JubjubAffine) -> JubjubExtended
Performs the
-
operation. Read moresource§impl<'b> Sub<&'b JubjubAffine> for JubjubExtended
impl<'b> Sub<&'b JubjubAffine> for JubjubExtended
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
-
operator.source§fn sub(self, rhs: &'b JubjubAffine) -> JubjubExtended
fn sub(self, rhs: &'b JubjubAffine) -> JubjubExtended
Performs the
-
operation. Read moresource§impl<'a, 'b> Sub<&'b JubjubExtended> for &'a JubjubAffine
impl<'a, 'b> Sub<&'b JubjubExtended> for &'a JubjubAffine
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
-
operator.source§fn sub(self, rhs: &'b JubjubExtended) -> JubjubExtended
fn sub(self, rhs: &'b JubjubExtended) -> JubjubExtended
Performs the
-
operation. Read moresource§impl<'b> Sub<&'b JubjubExtended> for JubjubAffine
impl<'b> Sub<&'b JubjubExtended> for JubjubAffine
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
-
operator.source§fn sub(self, rhs: &'b JubjubExtended) -> JubjubExtended
fn sub(self, rhs: &'b JubjubExtended) -> JubjubExtended
Performs the
-
operation. Read moresource§impl<'a> Sub<JubjubAffine> for &'a JubjubAffine
impl<'a> Sub<JubjubAffine> for &'a JubjubAffine
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
-
operator.source§fn sub(self, rhs: JubjubAffine) -> JubjubExtended
fn sub(self, rhs: JubjubAffine) -> JubjubExtended
Performs the
-
operation. Read moresource§impl<'a> Sub<JubjubAffine> for &'a JubjubExtended
impl<'a> Sub<JubjubAffine> for &'a JubjubExtended
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
-
operator.source§fn sub(self, rhs: JubjubAffine) -> JubjubExtended
fn sub(self, rhs: JubjubAffine) -> JubjubExtended
Performs the
-
operation. Read moresource§impl Sub<JubjubAffine> for JubjubExtended
impl Sub<JubjubAffine> for JubjubExtended
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
-
operator.source§fn sub(self, rhs: JubjubAffine) -> JubjubExtended
fn sub(self, rhs: JubjubAffine) -> JubjubExtended
Performs the
-
operation. Read moresource§impl<'a> Sub<JubjubExtended> for &'a JubjubAffine
impl<'a> Sub<JubjubExtended> for &'a JubjubAffine
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
-
operator.source§fn sub(self, rhs: JubjubExtended) -> JubjubExtended
fn sub(self, rhs: JubjubExtended) -> JubjubExtended
Performs the
-
operation. Read moresource§impl Sub<JubjubExtended> for JubjubAffine
impl Sub<JubjubExtended> for JubjubAffine
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
-
operator.source§fn sub(self, rhs: JubjubExtended) -> JubjubExtended
fn sub(self, rhs: JubjubExtended) -> JubjubExtended
Performs the
-
operation. Read moresource§impl Sub for JubjubAffine
impl Sub for JubjubAffine
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
-
operator.source§impl<'a> SubAssign<&'a JubjubAffine> for JubjubExtended
impl<'a> SubAssign<&'a JubjubAffine> for JubjubExtended
source§fn sub_assign(&mut self, rhs: &'a JubjubAffine)
fn sub_assign(&mut self, rhs: &'a JubjubAffine)
Performs the
-=
operation. Read moresource§impl SubAssign<JubjubAffine> for JubjubExtended
impl SubAssign<JubjubAffine> for JubjubExtended
source§fn sub_assign(&mut self, rhs: JubjubAffine)
fn sub_assign(&mut self, rhs: JubjubAffine)
Performs the
-=
operation. Read moresource§impl TwistedEdwardsAffine for JubjubAffine
impl TwistedEdwardsAffine for JubjubAffine
source§impl TwistedEdwardsCurve for JubjubAffine
impl TwistedEdwardsCurve for JubjubAffine
type Range = Fr
type Scalar = Fp
const PARAM_D: Fr = EDWARDS_D
const ADDITIVE_GENERATOR: Self = _
const ADDITIVE_IDENTITY: Self = _
fn is_identity(&self) -> bool
fn zero() -> Self
fn invert(self) -> Option<Self>
fn random(rand: impl RngCore) -> JubjubAffine
fn is_on_curve(self) -> bool
fn get_x(&self) -> Self::Range
fn get_y(&self) -> Self::Range
impl Basic for JubjubAffine
impl Copy for JubjubAffine
impl EncodeLike for JubjubAffine
impl Eq for JubjubAffine
impl ParallelCmp for JubjubAffine
impl ParityCmp for JubjubAffine
impl RuntimeCmp for JubjubAffine
Auto Trait Implementations§
impl RefUnwindSafe for JubjubAffine
impl Send for JubjubAffine
impl Sync for JubjubAffine
impl Unpin for JubjubAffine
impl UnwindSafe for JubjubAffine
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