PallasNativeFp class

Inheritance
Mixed-in types

Properties

hashCode int
The hash code for this object.
no setterinherited
p BigInt
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
v BigInt
final
variables List
no setteroverride

Methods

compareTo(PallasNativeFp other) int
Lexicographic comparison of field elements.
inherited
conditionalSelect(PallasNativeFp a, PallasNativeFp b, bool choice) PallasNativeFp
Conditional selection: returns b if choice is true, a otherwise.
override
double() PallasNativeFp
Doubles the element.
override
getLower32() int
Returns the lowest 32 bits of the field element.
override
identity() PallasNativeFp
override
invert() PallasNativeFp?
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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pow(BigInt r) PallasNativeFp
powByTMinus1Over2() PallasNativeFp
Computes (self)^((t - 1)/2), used in curve-specific operations.
override
powVartime(List<BigInt> by) PallasNativeFp
sqrt() FieldSqrtResult<PallasNativeFp>
Computes the square root of the element.
override
square() PallasNativeFp
Squares the element.
override
sRatio(PallasNativeFp a, PallasNativeFp b) FieldSqrtResult<PallasNativeFp>
override
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 *(PallasNativeFp other) PallasNativeFp
override
operator +(PallasNativeFp other) PallasNativeFp
override
operator -(PallasNativeFp other) PallasNativeFp
override
operator /(PallasNativeFp o) PallasNativeFp
operator ==(Object other) bool
The equality operator.
inherited
operator unary-() PallasNativeFp
override