PallasFp class

Inheritance
Mixed-in types

Constructors

PallasFp(List<BigInt> limbs)
PallasFp.conditionalSelect(PallasFp a, PallasFp b, bool choice)
factory
PallasFp.delta()
factory
PallasFp.from(BigInt val)
factory
PallasFp.fromBytes(List<int> bytes)
factory
PallasFp.fromBytes64(List<int> bytes)
factory
PallasFp.fromRaw(List<BigInt> val)
factory
PallasFp.fromU128(BigInt v)
factory
PallasFp.generator()
factory
PallasFp.montgomeryReduce(BigInt r0, BigInt r1, BigInt r2, BigInt r3, BigInt r4, BigInt r5, BigInt r6, BigInt r7)
factory
PallasFp.one()
factory
PallasFp.r()
factory
PallasFp.r2()
factory
PallasFp.r3()
factory
PallasFp.random()
factory
PallasFp.rootOfUnity()
factory
PallasFp.rootOfUnityInv()
factory
PallasFp.theta()
factory
PallasFp.twoInv()
factory
PallasFp.z()
factory
PallasFp.zero()
factory
PallasFp.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(PallasFp rhs) PallasFp
clone() PallasFp
compareTo(PallasFp other) int
Lexicographic comparison of field elements.
inherited
conditionalSelect(PallasFp a, PallasFp b, bool choice) PallasFp
Conditional selection: returns b if choice is true, a otherwise.
override
constantEquality(PallasFp other) bool
override
double() PallasFp
Doubles the element.
override
getLower32() int
Returns the lowest 32 bits of the field element.
override
invert() PallasFp?
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(PallasFp rhs) PallasFp
neg() PallasFp
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pow(List<BigInt> expWords) PallasFp
powByTMinus1Over2() PallasFp
Computes (self)^((t - 1)/2), used in curve-specific operations.
override
sqrt() FieldSqrtResult<PallasFp>
Computes the square root of the element.
override
square() PallasFp
Squares the element.
override
sRatio(PallasFp a, PallasFp b) FieldSqrtResult<PallasFp>
override
sub(PallasFp rhs) PallasFp
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 *(PallasFp rhs) PallasFp
override
operator +(PallasFp rhs) PallasFp
override
operator -(PallasFp rhs) PallasFp
override
operator ==(Object other) bool
The equality operator.
inherited
operator unary-() PallasFp
override