Struct ark_ed_on_bn254::EdwardsParameters[][src]

pub struct EdwardsParameters;
Expand description

Baby-JubJub is a twisted Edwards curve. These curves have equations of the form: ax² + y² = 1 + dx²y². over some base finite field Fq.

Baby-JubJub’s curve equation: x² + y² = 1 + (168696/168700)x²y²

q = 21888242871839275222246405745257275088548364400416034343698204186575808495617

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

COEFF_A = 168698

COEFF_B = 168700

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

COEFF_A = 1

COEFF_D = 168696/168700 mod q = 9706598848417545097372247223557719406784115219466060233080913168975159366771

COFACTOR = 8

COFACTOR^(-1) mod r = 2394026564107420727433200628387514462817212225638746351800188703329891451411

AFFINE_GENERATOR_COEFFS = (GENERATOR_X, GENERATOR_Y)

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.

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.