PastaNativeFieldElement<F extends PastaNativeFieldElement<F>> class
abstract
- Inheritance
-
- Implemented types
-
- Implementers
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
v
→ BigInt
-
no setter
Methods
-
compareTo(F other)
→ int
-
Lexicographic comparison of field elements.
override
-
conditionalSelect(F a, F b, bool choice)
→ F
-
Conditional selection: returns
b if choice is true, a otherwise.
inherited
-
double()
→ F
-
Doubles the element.
inherited
-
getLower32()
→ int
-
Returns the lowest 32 bits of the field element.
inherited
-
identity()
→ F
-
-
invert()
→ F?
-
Computes the multiplicative inverse.
inherited
-
isOdd()
→ bool
-
Returns true if the element is odd (least significant bit = 1)
inherited
-
isZero()
→ bool
-
Returns true if the element is zero.
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
powByTMinus1Over2()
→ F
-
Computes (self)^((t - 1)/2), used in curve-specific operations.
inherited
-
sqrt()
→ FieldSqrtResult<F>
-
Computes the square root of the element.
inherited
-
square()
→ F
-
Squares the element.
inherited
-
sRatio(F a, F b)
→ FieldSqrtResult<F>
-
inherited
-
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.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited