JubJubNativePoint class

Inheritance

Constructors

JubJubNativePoint({required JubJubNativeFq u, required JubJubNativeFq v, required JubJubNativeFq z, required JubJubNativeFq t1, required JubJubNativeFq t2})
JubJubNativePoint.fromAffinePoint(JubJubAffineNativePoint point)
factory
JubJubNativePoint.fromBytes(List<int> bytes, {bool zip216Enabled = true})
factory
JubJubNativePoint.identity()
factory
JubJubNativePoint.random({bool subgroupPoint = false})
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
t1 JubJubNativeFq
final
t2 JubJubNativeFq
final
u JubJubNativeFq
final
v JubJubNativeFq
final
z JubJubNativeFq
final

Methods

cast<T extends ECPoint<SCALAR, POINT>>() → T
inherited
clearCofactor() JubJubNativePoint
Clears the cofactor (alias for mulByCofactor).
inherited
double() JubJubNativePoint
Point doubling.
override
identity() JubJubNativePoint
override
isIdentity() bool
Checks whether the point is the identity.
override
isOnCurve() bool
isSmallOrder() bool
Checks whether the point has small order.
override
isTorsionFree() bool
mulByCofactor() JubJubNativePoint
Multiplies the point by the group cofactor.
override
multiply(List<int> by) JubJubNativePoint
Scalar multiplication from raw bytes.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recommendedWnafForNumScalars(int numScalars) int
override
toAffine() JubJubAffineNativePoint
toBytes() List<int>
override
toHex() String
inherited
toNiels() JubJubNielsNativePoint
Converts this point to its Niels representation for faster arithmetic.
override
toString() String
A string representation of this object.
inherited

Operators

operator *(JubJubNativeFr rhs) JubJubNativePoint
Scalar multiplication of this point.
override
operator +(BaseRedJubJubPoint<JubJubNativeFr> rhs) JubJubNativePoint
Point addition with another JubJub point.
override
operator -(BaseRedJubJubPoint<JubJubNativeFr> rhs) JubJubNativePoint
override
operator ==(Object other) bool
The equality operator.
override
operator unary-() JubJubNativePoint
override