Expand description
Arithmetic related re-exported traits and utilities.
Structs§
- Coordinates
- The affine coordinates of a point on an elliptic curve.
- Domain
- 2-adicity multiplicative domain
- Fraction
- Contains numerator and denominator for deferred evaluation.
- Rotation
- Rotation on a group.
Traits§
- Batch
Invert - Extension trait for iterators over mutable field elements which allows those field elements to be inverted in a batch.
- Curve
- Efficient representation of an elliptic curve point guaranteed.
- Curve
Affine - This trait is the affine counterpart to
Curve
and is used for serialization, storage in memory, and inspection of $x$ and $y$ coordinates. - Curve
Ext - This trait is a common interface for dealing with elements of an elliptic curve group in a “projective” form, where that arithmetic is usually more efficient.
- Field
- This trait represents an element of a field.
- Field
Ext - Trait for fields that can implement Poseidon hash
- Field
Ops - Operations that could be done with field elements.
- From
Uniform Bytes - Trait for constructing a
PrimeField
element from a fixed-length uniform byte array. - Group
- This trait represents an element of a cryptographic group.
- Group
Encoding - Miller
Loop Result - Represents results of a Miller loop, one of the most expensive portions of the pairing function.
- Multi
Miller Loop - pairing::MultiMillerLoop with
std::fmt::Debug
. - Prime
Curve Affine - Affine representation of an elliptic curve point guaranteed to be in the correct prime order subgroup.
- Prime
Field - This represents an element of a non-binary prime field.
Functions§
- batch_
invert - Batch invert
PrimeField
elements. - batch_
invert_ and_ mul - Batch invert
PrimeField
elements and multiply all with given coefficient. - fe_
from_ big - Convert a
BigUint
into aPrimeField
. - fe_
from_ limbs - Convert
LIMBS
limbs into aPrimeField
, assuming each limb contains at mostBITS
. - fe_
to_ big - Convert a
PrimeField
into aBigUint
. - fe_
to_ fe - Convert a
PrimeField
into anotherPrimeField
. - fe_
to_ limbs - Convert a
PrimeField
intoLIMBS
limbs where each limb contains at mostBITS
. - inner_
product - Compute inner product of 2 slice of
Field
. - modulus
- Modulus of a
PrimeField
- powers
- Returns iterator that yields scalar^0, scalar^1, scalar^2…
- root_
of_ unity - Root of unity of 2^k-sized multiplicative subgroup of
PrimeField
by repeatedly squaring the root of unity of the largest multiplicative subgroup.
Derive Macros§
- Prime
Field - Derive the
PrimeField
trait.