PastaPoint<SCALAR extends PastaFieldElement<SCALAR>, BASE extends PastaFieldElement<BASE>, P extends PastaPoint<SCALAR, BASE, P>> class abstract

A Pasta point in projective coordinates, with full group and cofactor operations.

Inheritance
Implemented types
Implementers

Constructors

PastaPoint({required BASE x, required BASE y, required BASE z})
const

Properties

curveParams → PastaCurveParams<BASE>
finalinherited
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
x → BASE
final
y → BASE
final
z → BASE
final

Methods

cast<T extends ECPoint<SCALAR, POINT>>() → T
Casts this point to T, throwing CastFailedException on mismatch.
inherited
clearCofactor() → P
Multiplies this point by the cofactor, projecting it into the prime-order subgroup.
inherited
double() → P
override
endo() → P
from({required BASE x, required BASE y, required BASE z}) → P
generator() → P
identity() → P
override
isIdentity() → bool
override
isOnCurve() → bool
isSmallOrder() → bool
Whether this point has small order (lies in the cofactor subgroup).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recommendedWnafForNumScalars(int numScalars) → int
override
selectMask(P other, Uint64 bit) → P
Mask select: returns other iff bit == 1, else this. bit is a 0/1 Uint64 (never a bool), so secret-data selects in addition and scalar multiplication stay straight-line.
toAffine() → PastaAffinePoint<SCALAR, BASE, P>
toBytes() → BuBytes
override
toString() → String
A string representation of this object.
inherited

Operators

operator *(SCALAR other) → P
override
operator +(BasePastaPoint<SCALAR, BASE> other) → P
override
operator -(BasePastaPoint<SCALAR, BASE> other) → P
override
operator ==(Object other) → bool
The equality operator.
override
operator unary-() → P
override