Struct ark_r1cs_std::groups::curves::twisted_edwards::MontgomeryAffineVar[][src]

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, // some fields omitted }
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. Read more

Returns the underlying ConstraintSystemRef. Read more

Returns the value that is assigned to self in the underlying ConstraintSystem. Read more

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

Performs the conversion.

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

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.