JubJubNativeFq class
Element of the JubJub field Fq.
- Inheritance
-
- Object
- CryptoField<
JubJubNativeFq> - JubJubNativeFieldElement<
JubJubNativeFq> - JubJubNativeFq
- Implemented types
- Mixed-in types
Constructors
- JubJubNativeFq(BigInt v)
- JubJubNativeFq.edwardsD()
-
factory
- JubJubNativeFq.edwardsD2()
-
factory
- JubJubNativeFq.from(int v)
-
factory
-
JubJubNativeFq.fromBytes(List<
int> bytes) -
factory
-
JubJubNativeFq.fromBytes64(List<
int> bytes) -
factory
- JubJubNativeFq.generator()
-
factory
- JubJubNativeFq.minusOne()
-
factory
- JubJubNativeFq.montgomeryA()
-
factory
- JubJubNativeFq.montgomeryScale()
-
factory
- JubJubNativeFq.nP(BigInt v)
- Creates a field element assuming v is already in canonical form.
- JubJubNativeFq.one()
-
factory
- JubJubNativeFq.random()
-
factory
- JubJubNativeFq.rootOfUnity()
-
factory
- JubJubNativeFq.zero()
-
factory
Properties
Methods
-
charBits(
) → List< bool> -
inherited
-
double(
) → JubJubNativeFq -
override
-
identity(
) → JubJubNativeFq -
override
-
invert(
) → JubJubNativeFq? -
override
-
isOdd(
) → bool -
isZero(
) → bool -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pow(
BigInt v) → JubJubNativeFq -
powVartime(
List< BigInt> by) → JubJubNativeFq -
sqrt(
) → FieldSqrtResult< JubJubNativeFq> -
override
-
square(
) → JubJubNativeFq -
override
-
toBits(
) → List< bool> -
inherited
-
toBytes(
) → List< int> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator *(
JubJubNativeFq other) → JubJubNativeFq -
override
-
operator +(
JubJubNativeFq other) → JubJubNativeFq -
override
-
operator -(
JubJubNativeFq other) → JubJubNativeFq -
override
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator unary-(
) → JubJubNativeFq -
override