PallasNativeFp class
- Inheritance
- Mixed-in types
Constructors
- PallasNativeFp(BigInt v)
- PallasNativeFp.delta()
-
factory
- PallasNativeFp.from(int v)
-
factory
-
PallasNativeFp.fromBytes(List<
int> bytes) -
factory
-
PallasNativeFp.fromBytes64(List<
int> bytes) -
factory
- PallasNativeFp.max()
-
factory
- PallasNativeFp.minusOne()
-
factory
- PallasNativeFp.nP(BigInt v)
- PallasNativeFp.one()
-
factory
- PallasNativeFp.r()
-
factory
- PallasNativeFp.random()
-
factory
- PallasNativeFp.rootOfUnity()
-
factory
- PallasNativeFp.rootOfUnityInv()
-
factory
- PallasNativeFp.theta()
-
factory
- PallasNativeFp.two()
-
factory
- PallasNativeFp.twoInv()
-
factory
- PallasNativeFp.z()
-
factory
- PallasNativeFp.zero()
-
factory
- PallasNativeFp.zeta()
-
factory
Properties
Methods
-
compareTo(
PallasNativeFp other) → int -
Lexicographic comparison of field elements.
inherited
-
conditionalSelect(
PallasNativeFp a, PallasNativeFp b, bool choice) → PallasNativeFp -
Conditional selection: returns
bif choice is true,aotherwise.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