Skip to main content

Crate taceo_ark_babyjubjub

Crate taceo_ark_babyjubjub 

Source
Expand description

This library implements a twisted Edwards curve whose base field is the scalar field of the curve BN254. This allows defining cryptographic primitives that use elliptic curves over the scalar field of the latter curve. This curve is also known as Baby-Jubjub.

Curve information:

  • Base field: q = 21888242871839275222246405745257275088548364400416034343698204186575808495617
  • Scalar field: r = 2736030358979909402780800718157159386076813972158567259200215660948447373041
  • Valuation(q - 1, 2) = 28
  • Valuation(r - 1, 2) = 4
  • Curve equation: ax^2 + y^2 =1 + dx^2y^2, where
    • a = 168700
    • d = 168696

Modules§

fq
fr

Structs§

EdwardsConfig
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.
FqConfig
FrConfig

Constants§

GENERATOR_X
GENERATOR_X = 5299619240641551281634865583518297030282874472190772894086521144482721001553
GENERATOR_Y
GENERATOR_Y = 16950150798460657717958625567821834550301663161624707787222815936182638968203

Type Aliases§

EdwardsAffine
EdwardsProjective
Fq
Fr