VestaFq class

Inheritance
Mixed-in types

Constructors

VestaFq(List<BigInt> limbs)
VestaFq.conditionalSelect(VestaFq a, VestaFq b, bool choice)
factory
VestaFq.delta()
factory
VestaFq.from(BigInt val)
factory
VestaFq.fromBytes(List<int> bytes)
factory
VestaFq.fromBytes64(List<int> bytes)
factory
VestaFq.fromRaw(List<BigInt> limbs)
factory
VestaFq.fromU128(BigInt v)
factory
VestaFq.generator()
factory
VestaFq.montgomeryReduce(BigInt r0, BigInt r1, BigInt r2, BigInt r3, BigInt r4, BigInt r5, BigInt r6, BigInt r7)
factory
VestaFq.multiplicativeGenerator()
factory
VestaFq.one()
factory
VestaFq.r()
factory
VestaFq.r2()
factory
VestaFq.r3()
factory
VestaFq.random()
factory
VestaFq.rootOfUnity()
factory
VestaFq.rootOfUnityInv()
factory
VestaFq.theta()
factory
VestaFq.twoInv()
factory
VestaFq.z()
factory
VestaFq.zero()
factory
VestaFq.zeta()
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(VestaFq rhs) VestaFq
compareTo(VestaFq other) int
Lexicographic comparison of field elements.
inherited
conditionalSelect(VestaFq a, VestaFq b, bool choice) VestaFq
Conditional selection: returns b if choice is true, a otherwise.
override
constantEquality(VestaFq other) bool
override
double() VestaFq
Doubles the element.
override
getLower32() int
Returns the lowest 32 bits of the field element.
override
invert() VestaFq?
Computes the multiplicative inverse.
override
isOdd() bool
Returns true if the element is odd (least significant bit = 1)
inherited
isZero() bool
Returns true if the element is zero.
override
mul(VestaFq rhs) VestaFq
neg() VestaFq
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pow(List<BigInt> exp) VestaFq
powByTMinus1Over2() VestaFq
Computes (self)^((t - 1)/2), used in curve-specific operations.
override
powVarTime(List<BigInt> expWords) VestaFq
sqrt() FieldSqrtResult<VestaFq>
Computes the square root of the element.
override
square() VestaFq
Squares the element.
override
sRatio(VestaFq a, VestaFq b) FieldSqrtResult<VestaFq>
override
sub(VestaFq rhs) VestaFq
toBits() List<bool>
Returns the field element as a list of bits (little-endian per limb).
inherited
toBytes() List<int>
Serializes the field element to bytes.
override
toString() String
A string representation of this object.
inherited

Operators

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