pub struct MontgomeryAffineVar<P: TEModelParameters, F: FieldVar<P::BaseField, <P::BaseField as Field>::BasePrimeField>>where
    for<'a> &'a F: FieldOpsBounds<'a, P::BaseField, F>,
{ pub x: F, pub y: F, /* private fields */ }
Expand description

An implementation of arithmetic for Montgomery curves that relies on incomplete addition formulae for the affine model, as outlined in the EFD.

This is intended for use primarily for implementing efficient multi-scalar-multiplication in the Bowe-Hopwood-Pedersen hash.

Fields§

§x: F

The x-coordinate.

§y: F

The y-coordinate.

Implementations§

Constructs Self from an (x, y) coordinate pair.

Converts a Twisted Edwards curve point to coordinates for the corresponding affine Montgomery curve point.

Converts a Twisted Edwards curve point to coordinates for the corresponding affine Montgomery curve point.

Converts self into a Twisted Edwards curve point variable.

Trait Implementations§

The resulting type after applying the + operator.
Performs the + operation. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
The type of the “native” value that Self represents in the constraint system.
Returns the underlying ConstraintSystemRef. Read more
Returns the value that is assigned to self in the underlying ConstraintSystem.
Returns true if self is a circuit-generation-time constant.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

Calls U::from(self).

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

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more