VestaNativeFq class
- Inheritance
- Mixed-in types
Constructors
- VestaNativeFq(BigInt v)
- VestaNativeFq.conditionalSelect(VestaNativeFq a, VestaNativeFq b, bool choice)
-
factory
- VestaNativeFq.from(int v)
-
factory
-
VestaNativeFq.fromBytes(List<
int> bytes) -
factory
-
VestaNativeFq.fromBytes64(List<
int> bytes) -
factory
- VestaNativeFq.minusOne()
-
factory
- VestaNativeFq.nP(BigInt v)
- VestaNativeFq.random()
-
factory
- VestaNativeFq.rootOfUnity()
-
factory
- VestaNativeFq.theta()
-
factory
- VestaNativeFq.two()
-
factory
- VestaNativeFq.twoInv()
-
factory
- VestaNativeFq.z()
-
factory
- VestaNativeFq.zeta()
-
factory
Properties
Methods
-
compareTo(
VestaNativeFq other) → int -
Lexicographic comparison of field elements.
inherited
-
conditionalSelect(
VestaNativeFq a, VestaNativeFq b, bool choice) → VestaNativeFq -
Conditional selection: returns
bif choice is true,aotherwise.override -
double(
) → VestaNativeFq -
Doubles the element.
override
-
getLower32(
) → int -
Returns the lowest 32 bits of the field element.
override
-
identity(
) → VestaNativeFq -
override
-
invert(
) → VestaNativeFq? -
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) → VestaNativeFq -
powByTMinus1Over2(
) → VestaNativeFq -
Computes (self)^((t - 1)/2), used in curve-specific operations.
override
-
sqrt(
) → FieldSqrtResult< VestaNativeFq> -
Computes the square root of the element.
override
-
square(
) → VestaNativeFq -
Squares the element.
override
-
sRatio(
VestaNativeFq a, VestaNativeFq b) → FieldSqrtResult< VestaNativeFq> -
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 *(
VestaNativeFq other) → VestaNativeFq -
override
-
operator +(
VestaNativeFq other) → VestaNativeFq -
override
-
operator -(
VestaNativeFq other) → VestaNativeFq -
override
-
operator /(
VestaNativeFq o) → VestaNativeFq -
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator unary-(
) → VestaNativeFq -
override
Static Methods
-
one(
) → VestaNativeFq -
sqrtAlt(
VestaNativeFq r) → FieldSqrtResult< VestaNativeFq> -
sqrtRatio(
VestaNativeFq num, VestaNativeFq div) → FieldSqrtResult< VestaNativeFq> -
zero(
) → VestaNativeFq