JubJubFr class

Element of the JubJub scalar field Fr, internally represented as 4 64-bit limbs in Montgomery form.

Inheritance
Mixed-in types

Constructors

JubJubFr(List<BigInt> limbs)
JubJubFr.delta()
factory
JubJubFr.from(BigInt val)
factory
JubJubFr.fromBytes(List<int> bytes)
factory
JubJubFr.fromBytes64(List<int> bytes)
factory
JubJubFr.fromRaw(List<BigInt> val)
factory
JubJubFr.generator()
factory
JubJubFr.montgomeryReduce(BigInt r0, BigInt r1, BigInt r2, BigInt r3, BigInt r4, BigInt r5, BigInt r6, BigInt r7)
factory
JubJubFr.one()
factory
JubJubFr.r()
factory
JubJubFr.r2()
factory
JubJubFr.r3()
factory
JubJubFr.rootOfUnity()
factory
JubJubFr.rootOfUnityInv()
factory
JubJubFr.twoInv()
factory
JubJubFr.zero()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
limbs List<BigInt>
final
publicFields List<Object?>
Public, non-secret fields that can be compared normally.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secretFields List<List<int>>
Secret fields that MUST be compared in constant time.
no setterinherited

Methods

add(JubJubFr rhs) JubJubFr
charBits() List<bool>
inherited
constantEquality(JubJubFr other) bool
override
double() JubJubFr
override
invert() JubJubFr?
override
isZero() bool
override
mul(JubJubFr rhs) JubJubFr
neg() JubJubFr
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pow(List<BigInt> by) JubJubFr
powVartime(List<BigInt> by) JubJubFr
sqrt() FieldSqrtResult<JubJubFr>
override
sqrtRatio(JubJubFr num, JubJubFr div) FieldSqrtResult<JubJubFr>
square() JubJubFr
override
sub(JubJubFr rhs) JubJubFr
toBits() List<bool>
inherited
toBytes() List<int>
override
toString() String
A string representation of this object.
inherited

Operators

operator *(JubJubFr rhs) JubJubFr
override
operator +(JubJubFr rhs) JubJubFr
override
operator -(JubJubFr rhs) JubJubFr
override
operator ==(Object other) bool
The equality operator.
inherited
operator unary-() JubJubFr
override