Struct decaf377::AffineElement

source ·
pub struct AffineElement { /* private fields */ }

Trait Implementations§

source§

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

§

type Output = AffineElement

The resulting type after applying the + operator.
source§

fn add(self, other: &'b AffineElement) -> AffineElement

Performs the + operation. Read more
source§

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

§

type Output = AffineElement

The resulting type after applying the + operator.
source§

fn add(self, other: &'b AffineElement) -> AffineElement

Performs the + operation. Read more
source§

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

§

type Output = AffineElement

The resulting type after applying the + operator.
source§

fn add(self, other: AffineElement) -> AffineElement

Performs the + operation. Read more
source§

impl Add<AffineElement> for AffineElement

§

type Output = AffineElement

The resulting type after applying the + operator.
source§

fn add(self, other: AffineElement) -> AffineElement

Performs the + operation. Read more
source§

impl<'b> AddAssign<&'b AffineElement> for AffineElement

source§

fn add_assign(&mut self, other: &'b AffineElement)

Performs the += operation. Read more
source§

impl AddAssign<AffineElement> for AffineElement

source§

fn add_assign(&mut self, other: AffineElement)

Performs the += operation. Read more
source§

impl AffineCurve for AffineElement

source§

const COFACTOR: &'static [u64] = _

§

type ScalarField = Fp256<FrParameters>

§

type BaseField = Fp256<FrParameters>

§

type Projective = Element

source§

fn prime_subgroup_generator() -> Self

Returns a fixed generator of unknown exponent.
source§

fn from_random_bytes(bytes: &[u8]) -> Option<Self>

Returns a group element if the set of bytes forms a valid group element, otherwise returns None. This function is primarily intended for sampling random group elements from a hash-function or RNG output.
source§

fn mul<S: Into<<Self::ScalarField as PrimeField>::BigInt>>( &self, other: S ) -> Self::Projective

Performs scalar multiplication of this element with mixed addition.
source§

fn mul_by_cofactor_to_projective(&self) -> Self::Projective

Multiply this element by the cofactor and output the resulting projective element.
source§

fn mul_by_cofactor_inv(&self) -> Self

Multiply this element by the inverse of the cofactor in Self::ScalarField.
source§

fn into_projective(&self) -> Self::Projective

Converts self into the projective representation.
source§

fn mul_by_cofactor(&self) -> Self

Multiply this element by the cofactor.
source§

impl CanonicalDeserialize for AffineElement

source§

fn deserialize<R: Read>(reader: R) -> Result<Self, SerializationError>

Reads Self from reader.
source§

fn deserialize_uncompressed<R>(reader: R) -> Result<Self, SerializationError>where R: Read,

Reads Self from reader without compression.
source§

fn deserialize_unchecked<R>(reader: R) -> Result<Self, SerializationError>where R: Read,

Reads self from reader without compression, and without performing validity checks. Should be used only when the input is trusted.
source§

impl CanonicalSerialize for AffineElement

source§

fn serialized_size(&self) -> usize

source§

fn serialize<W: Write>(&self, writer: W) -> Result<(), SerializationError>

Serializes self into writer. It is left up to a particular type for how it strikes the serialization efficiency vs compression tradeoff. For standard types (e.g. bool, lengths, etc.) typically an uncompressed form is used, whereas for algebraic types compressed forms are used. Read more
source§

fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError>where W: Write,

Serializes self into writer without compression.
source§

fn serialize_unchecked<W>(&self, writer: W) -> Result<(), SerializationError>where W: Write,

Serializes self into writer without compression, and without performing validity checks. Should be used only when there is no danger of adversarial manipulation of the output.
source§

fn uncompressed_size(&self) -> usize

source§

impl Clone for AffineElement

source§

fn clone(&self) -> AffineElement

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 AffineElement

source§

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

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

impl Default for AffineElement

source§

fn default() -> Self

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

impl Display for AffineElement

source§

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

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

impl From<&AffineElement> for Element

source§

fn from(point: &AffineElement) -> Self

Converts to this type from the input type.
source§

impl From<&Element> for AffineElement

source§

fn from(point: &Element) -> Self

Converts to this type from the input type.
source§

impl From<AffineElement> for Element

source§

fn from(point: AffineElement) -> Self

Converts to this type from the input type.
source§

impl From<Element> for AffineElement

source§

fn from(point: Element) -> Self

Converts to this type from the input type.
source§

impl FromBytes for AffineElement

source§

fn read<R: Read>(reader: R) -> IoResult<Self>

Reads Self from reader.
source§

impl Hash for AffineElement

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'a, 'b> Mul<&'b AffineElement> for &'a Fr

§

type Output = AffineElement

The resulting type after applying the * operator.
source§

fn mul(self, point: &'b AffineElement) -> AffineElement

Performs the * operation. Read more
source§

impl<'b> Mul<&'b AffineElement> for Fr

§

type Output = AffineElement

The resulting type after applying the * operator.
source§

fn mul(self, other: &'b AffineElement) -> AffineElement

Performs the * operation. Read more
source§

impl<'a, 'b> Mul<&'b Fp256<FrParameters>> for &'a AffineElement

§

type Output = AffineElement

The resulting type after applying the * operator.
source§

fn mul(self, point: &'b Fr) -> AffineElement

Performs the * operation. Read more
source§

impl<'b> Mul<&'b Fp256<FrParameters>> for AffineElement

§

type Output = AffineElement

The resulting type after applying the * operator.
source§

fn mul(self, other: &'b Fr) -> AffineElement

Performs the * operation. Read more
source§

impl<'a> Mul<AffineElement> for &'a Fr

§

type Output = AffineElement

The resulting type after applying the * operator.
source§

fn mul(self, other: AffineElement) -> AffineElement

Performs the * operation. Read more
source§

impl Mul<AffineElement> for Fr

§

type Output = AffineElement

The resulting type after applying the * operator.
source§

fn mul(self, other: AffineElement) -> AffineElement

Performs the * operation. Read more
source§

impl<'a> Mul<Fp256<FrParameters>> for &'a AffineElement

§

type Output = AffineElement

The resulting type after applying the * operator.
source§

fn mul(self, other: Fr) -> AffineElement

Performs the * operation. Read more
source§

impl Mul<Fp256<FrParameters>> for AffineElement

§

type Output = AffineElement

The resulting type after applying the * operator.
source§

fn mul(self, other: Fr) -> AffineElement

Performs the * operation. Read more
source§

impl<'b> MulAssign<&'b Fp256<FrParameters>> for AffineElement

source§

fn mul_assign(&mut self, point: &'b Fr)

Performs the *= operation. Read more
source§

impl MulAssign<Fp256<FrParameters>> for AffineElement

source§

fn mul_assign(&mut self, other: Fr)

Performs the *= operation. Read more
source§

impl Neg for AffineElement

§

type Output = AffineElement

The resulting type after applying the - operator.
source§

fn neg(self) -> Self

Performs the unary - operation. Read more
source§

impl PartialEq<AffineElement> for AffineElement

source§

fn eq(&self, other: &AffineElement) -> 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<'a, 'b> Sub<&'b AffineElement> for &'a AffineElement

§

type Output = AffineElement

The resulting type after applying the - operator.
source§

fn sub(self, other: &'b AffineElement) -> AffineElement

Performs the - operation. Read more
source§

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

§

type Output = AffineElement

The resulting type after applying the - operator.
source§

fn sub(self, other: &'b AffineElement) -> AffineElement

Performs the - operation. Read more
source§

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

§

type Output = AffineElement

The resulting type after applying the - operator.
source§

fn sub(self, other: AffineElement) -> AffineElement

Performs the - operation. Read more
source§

impl Sub<AffineElement> for AffineElement

§

type Output = AffineElement

The resulting type after applying the - operator.
source§

fn sub(self, other: AffineElement) -> AffineElement

Performs the - operation. Read more
source§

impl<'b> SubAssign<&'b AffineElement> for AffineElement

source§

fn sub_assign(&mut self, other: &'b AffineElement)

Performs the -= operation. Read more
source§

impl SubAssign<AffineElement> for AffineElement

source§

fn sub_assign(&mut self, other: AffineElement)

Performs the -= operation. Read more
source§

impl<'a> Sum<&'a AffineElement> for AffineElement

source§

fn sum<I: Iterator<Item = &'a Self>>(iter: I) -> Self

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl Sum<AffineElement> for AffineElement

source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl ToBytes for AffineElement

source§

fn write<W: Write>(&self, writer: W) -> IoResult<()>

Serializes self into writer.
source§

impl Zero for AffineElement

source§

fn zero() -> Self

Returns the additive identity element of Self, 0. Read more
source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
source§

impl Zeroize for AffineElement

source§

fn zeroize(&mut self)

Zero out this object from memory using Rust intrinsics which ensure the zeroization operation is not “optimized away” by the compiler.
source§

impl Copy for AffineElement

source§

impl Eq for AffineElement

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> CanonicalSerializeHashExt for Twhere T: CanonicalSerialize,

source§

fn hash<H>(&self) -> GenericArray<u8, <H as Digest>::OutputSize>where H: Digest,

source§

fn hash_uncompressed<H>(&self) -> GenericArray<u8, <H as Digest>::OutputSize>where H: Digest,

source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

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

const: unstable · 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> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere 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> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more