Struct jub_jub::JubjubAffine

source ·
pub struct JubjubAffine { /* private fields */ }
Expand description

Twisted Edwards curve Jubjub affine coordinate

Implementations§

Trait Implementations§

source§

impl<'a, 'b> Add<&'b JubjubAffine> for &'a JubjubAffine

§

type Output = JubjubExtended

The resulting type after applying the + operator.
source§

fn add(self, rhs: &'b JubjubAffine) -> JubjubExtended

Performs the + operation. Read more
source§

impl<'a, 'b> Add<&'b JubjubAffine> for &'a JubjubExtended

§

type Output = JubjubExtended

The resulting type after applying the + operator.
source§

fn add(self, rhs: &'b JubjubAffine) -> JubjubExtended

Performs the + operation. Read more
source§

impl<'b> Add<&'b JubjubAffine> for JubjubAffine

§

type Output = JubjubExtended

The resulting type after applying the + operator.
source§

fn add(self, rhs: &'b JubjubAffine) -> JubjubExtended

Performs the + operation. Read more
source§

impl<'b> Add<&'b JubjubAffine> for JubjubExtended

§

type Output = JubjubExtended

The resulting type after applying the + operator.
source§

fn add(self, rhs: &'b JubjubAffine) -> JubjubExtended

Performs the + operation. Read more
source§

impl<'a, 'b> Add<&'b JubjubExtended> for &'a JubjubAffine

§

type Output = JubjubExtended

The resulting type after applying the + operator.
source§

fn add(self, rhs: &'b JubjubExtended) -> JubjubExtended

Performs the + operation. Read more
source§

impl<'b> Add<&'b JubjubExtended> for JubjubAffine

§

type Output = JubjubExtended

The resulting type after applying the + operator.
source§

fn add(self, rhs: &'b JubjubExtended) -> JubjubExtended

Performs the + operation. Read more
source§

impl<'a> Add<JubjubAffine> for &'a JubjubAffine

§

type Output = JubjubExtended

The resulting type after applying the + operator.
source§

fn add(self, rhs: JubjubAffine) -> JubjubExtended

Performs the + operation. Read more
source§

impl<'a> Add<JubjubAffine> for &'a JubjubExtended

§

type Output = JubjubExtended

The resulting type after applying the + operator.
source§

fn add(self, rhs: JubjubAffine) -> JubjubExtended

Performs the + operation. Read more
source§

impl Add<JubjubAffine> for JubjubExtended

§

type Output = JubjubExtended

The resulting type after applying the + operator.
source§

fn add(self, rhs: JubjubAffine) -> JubjubExtended

Performs the + operation. Read more
source§

impl<'a> Add<JubjubExtended> for &'a JubjubAffine

§

type Output = JubjubExtended

The resulting type after applying the + operator.
source§

fn add(self, rhs: JubjubExtended) -> JubjubExtended

Performs the + operation. Read more
source§

impl Add<JubjubExtended> for JubjubAffine

§

type Output = JubjubExtended

The resulting type after applying the + operator.
source§

fn add(self, rhs: JubjubExtended) -> JubjubExtended

Performs the + operation. Read more
source§

impl Add for JubjubAffine

§

type Output = JubjubExtended

The resulting type after applying the + operator.
source§

fn add(self, rhs: JubjubAffine) -> Self::Output

Performs the + operation. Read more
source§

impl<'a> AddAssign<&'a JubjubAffine> for JubjubExtended

source§

fn add_assign(&mut self, rhs: &'a JubjubAffine)

Performs the += operation. Read more
source§

impl AddAssign<JubjubAffine> for JubjubExtended

source§

fn add_assign(&mut self, rhs: JubjubAffine)

Performs the += operation. Read more
source§

impl Clone for JubjubAffine

source§

fn clone(&self) -> JubjubAffine

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for JubjubAffine

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Decode for JubjubAffine

source§

fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>

Attempt to deserialise the value from input.
source§

fn skip<I>(input: &mut I) -> Result<(), Error>
where I: Input,

Attempt to skip the encoded value from input. Read more
source§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
source§

impl Default for JubjubAffine

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for JubjubAffine

source§

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

source§

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

If possible give a hint of expected size of the encoding. Read more
source§

fn encode(&self) -> Vec<u8>

Convert self to an owned vector.
source§

fn using_encoded<R, F>(&self, f: F) -> R
where F: FnOnce(&[u8]) -> R,

Convert self to a slice and then invoke the given closure with it.
source§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
source§

impl From<JubjubAffine> for JubjubExtended

source§

fn from(p: JubjubAffine) -> JubjubExtended

Converts to this type from the input type.
source§

impl From<JubjubExtended> for JubjubAffine

source§

fn from(p: JubjubExtended) -> JubjubAffine

Converts to this type from the input type.
source§

impl<'a, 'b> Mul<&'b Fp> for &'a JubjubAffine

§

type Output = JubjubExtended

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &'b Fp) -> Self::Output

Performs the * operation. Read more
source§

impl<'a> Mul<&'a Fp> for JubjubAffine

§

type Output = JubjubExtended

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &'a Fp) -> Self::Output

Performs the * operation. Read more
source§

impl<'a, 'b> Mul<&'b JubjubAffine> for &'a Fp

§

type Output = JubjubExtended

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &'b JubjubAffine) -> Self::Output

Performs the * operation. Read more
source§

impl<'a> Mul<&'a JubjubAffine> for Fp

§

type Output = JubjubExtended

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &'a JubjubAffine) -> Self::Output

Performs the * operation. Read more
source§

impl<'a> Mul<Fp> for &'a JubjubAffine

§

type Output = JubjubExtended

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Fp) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Fp> for JubjubAffine

§

type Output = JubjubExtended

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Fp) -> JubjubExtended

Performs the * operation. Read more
source§

impl<'a> Mul<JubjubAffine> for &'a Fp

§

type Output = JubjubExtended

The resulting type after applying the * operator.
source§

fn mul(self, rhs: JubjubAffine) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<JubjubAffine> for Fp

§

type Output = JubjubExtended

The resulting type after applying the * operator.
source§

fn mul(self, rhs: JubjubAffine) -> JubjubExtended

Performs the * operation. Read more
source§

impl Neg for JubjubAffine

§

type Output = JubjubAffine

The resulting type after applying the - operator.
source§

fn neg(self) -> Self

Performs the unary - operation. Read more
source§

impl PartialEq for JubjubAffine

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for JubjubAffine

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl SigUtils<32> for JubjubAffine

source§

fn to_bytes(self) -> [u8; 32]

source§

fn from_bytes(bytes: [u8; 32]) -> Option<Self>

source§

const LENGTH: usize = L

source§

impl<'a, 'b> Sub<&'b JubjubAffine> for &'a JubjubAffine

§

type Output = JubjubExtended

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'b JubjubAffine) -> JubjubExtended

Performs the - operation. Read more
source§

impl<'a, 'b> Sub<&'b JubjubAffine> for &'a JubjubExtended

§

type Output = JubjubExtended

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'b JubjubAffine) -> JubjubExtended

Performs the - operation. Read more
source§

impl<'b> Sub<&'b JubjubAffine> for JubjubAffine

§

type Output = JubjubExtended

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'b JubjubAffine) -> JubjubExtended

Performs the - operation. Read more
source§

impl<'b> Sub<&'b JubjubAffine> for JubjubExtended

§

type Output = JubjubExtended

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'b JubjubAffine) -> JubjubExtended

Performs the - operation. Read more
source§

impl<'a, 'b> Sub<&'b JubjubExtended> for &'a JubjubAffine

§

type Output = JubjubExtended

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'b JubjubExtended) -> JubjubExtended

Performs the - operation. Read more
source§

impl<'b> Sub<&'b JubjubExtended> for JubjubAffine

§

type Output = JubjubExtended

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &'b JubjubExtended) -> JubjubExtended

Performs the - operation. Read more
source§

impl<'a> Sub<JubjubAffine> for &'a JubjubAffine

§

type Output = JubjubExtended

The resulting type after applying the - operator.
source§

fn sub(self, rhs: JubjubAffine) -> JubjubExtended

Performs the - operation. Read more
source§

impl<'a> Sub<JubjubAffine> for &'a JubjubExtended

§

type Output = JubjubExtended

The resulting type after applying the - operator.
source§

fn sub(self, rhs: JubjubAffine) -> JubjubExtended

Performs the - operation. Read more
source§

impl Sub<JubjubAffine> for JubjubExtended

§

type Output = JubjubExtended

The resulting type after applying the - operator.
source§

fn sub(self, rhs: JubjubAffine) -> JubjubExtended

Performs the - operation. Read more
source§

impl<'a> Sub<JubjubExtended> for &'a JubjubAffine

§

type Output = JubjubExtended

The resulting type after applying the - operator.
source§

fn sub(self, rhs: JubjubExtended) -> JubjubExtended

Performs the - operation. Read more
source§

impl Sub<JubjubExtended> for JubjubAffine

§

type Output = JubjubExtended

The resulting type after applying the - operator.
source§

fn sub(self, rhs: JubjubExtended) -> JubjubExtended

Performs the - operation. Read more
source§

impl Sub for JubjubAffine

§

type Output = JubjubExtended

The resulting type after applying the - operator.
source§

fn sub(self, rhs: JubjubAffine) -> Self::Output

Performs the - operation. Read more
source§

impl<'a> SubAssign<&'a JubjubAffine> for JubjubExtended

source§

fn sub_assign(&mut self, rhs: &'a JubjubAffine)

Performs the -= operation. Read more
source§

impl SubAssign<JubjubAffine> for JubjubExtended

source§

fn sub_assign(&mut self, rhs: JubjubAffine)

Performs the -= operation. Read more
source§

impl TwistedEdwardsAffine for JubjubAffine

§

type Extended = JubjubExtended

source§

fn from_raw_unchecked(x: Self::Range, y: Self::Range) -> Self

source§

fn to_extended(self) -> Self::Extended

source§

fn to_raw_bytes(self) -> Vec<u8>

source§

fn double(self) -> Self::Extended

source§

impl TwistedEdwardsCurve for JubjubAffine

§

type Range = Fr

§

type Scalar = Fp

source§

const PARAM_D: Fr = EDWARDS_D

source§

const ADDITIVE_GENERATOR: Self = _

source§

const ADDITIVE_IDENTITY: Self = _

source§

fn is_identity(&self) -> bool

source§

fn zero() -> Self

source§

fn invert(self) -> Option<Self>

source§

fn random(rand: impl RngCore) -> JubjubAffine

source§

fn is_on_curve(self) -> bool

source§

fn get_x(&self) -> Self::Range

source§

fn get_y(&self) -> Self::Range

source§

impl Basic for JubjubAffine

source§

impl Copy for JubjubAffine

source§

impl EncodeLike for JubjubAffine

source§

impl Eq for JubjubAffine

source§

impl ParallelCmp for JubjubAffine

source§

impl ParityCmp for JubjubAffine

source§

impl RuntimeCmp for JubjubAffine

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DecodeAll for T
where T: Decode,

source§

fn decode_all(input: &[u8]) -> Result<T, Error>

Decode Self and consume all of the given input data. Read more
source§

impl<T> DecodeLimit for T
where T: Decode,

source§

fn decode_all_with_depth_limit(limit: u32, input: &[u8]) -> Result<T, Error>

Decode Self and consume all of the given input data. Read more
source§

fn decode_and_advance_with_depth_limit<I>( limit: u32, input: &mut I ) -> Result<T, Error>
where I: Input,

Decode Self and advance input by the number of bytes consumed. Read more
source§

fn decode_with_depth_limit(limit: u32, input: &[u8]) -> Result<T, Error>

Decode Self with the given maximum recursion depth. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> KeyedVec for T
where T: Codec,

source§

fn to_keyed_vec(&self, prepend_key: &[u8]) -> Vec<u8>

Return an encoding of Self prepended by given slice.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<S> Codec for S
where S: Decode + Encode,

source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

source§

impl<T> EncodeLike<&&T> for T
where T: Encode,

source§

impl<T> EncodeLike<&T> for T
where T: Encode,

source§

impl<T> EncodeLike<&mut T> for T
where T: Encode,

source§

impl<T> EncodeLike<Box<T>> for T
where T: Encode,

source§

impl<'a, T> EncodeLike<Cow<'a, T>> for T
where T: ToOwned + Encode,

source§

impl<S> FullCodec for S
where S: Decode + FullEncode,

source§

impl<S> FullEncode for S
where S: Encode + EncodeLike,