GtNative class

Element of GT, the BLS12-381 pairing target group, represented additively.

Inheritance
Mixed-in types

Constructors

GtNative(Bls12NativeFp12 inner)
const
GtNative.conditionalSelect(GtNative a, GtNative b, bool choice)
Conditional select: chooses a if choice == 0, else b
factory
GtNative.generator()
factory
GtNative.identity()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
inner Bls12NativeFp12
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
variables List
no setteroverride

Methods

cast<T extends ECPoint<SCALAR, POINT>>() → T
inherited
double() GtNative
Double this element (square in multiplicative group)
isIdentity() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBytes() List<int>
override
toHex() String
inherited
toString() String
A string representation of this object.
inherited

Operators

operator *(JubJubNativeFq rhs) GtNative
Add two GtNative elements (multiplicative in Fp12)
override
operator +(GtNative rhs) GtNative
override
operator -(GtNative rhs) GtNative
Subtract two GtNative elements (multiply by conjugate)
operator ==(Object other) bool
The equality operator.
inherited
operator unary-() GtNative
Negate this element (conjugate in unitary group)