EDPoint class

A class representing a point on an Edwards curve.

Inheritance
Implementers

Constructors

EDPoint({required CurveED curve, required BigInt x, required BigInt y, required BigInt z, required BigInt t, BigInt? order, bool generator = false})
Constructor for creating an EDPoint with explicit coordinates and optional parameters.
EDPoint.fromBytes({required CurveED curve, required List<int> data, BigInt? order})
Factory constructor to create an EDPoint from a byte representation.
factory
EDPoint.infinity({required CurveED curve})
A factory constructor to create an infinity point on an Edwards curve.
factory

Properties

curve CurveED
The Edwards curve associated with this point.
final
generator bool
Indicates if this point is a generator point.
final
hashCode int
Calculates the hash code for the Edwards curve point.
no setteroverride
order BigInt?
The order of the point (null if not set).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
t BigInt
no setter
x BigInt
Get the x-coordinate of the Edwards curve point.
no setteroverride
y BigInt
Get the y-coordinate of the Edwards curve point.
no setteroverride
z BigInt
no setter

Methods

cast<T extends ECPoint<SCALAR, POINT>>() → T
inherited
double() EDPoint
Double an Edwards curve point.
getCoords() List<BigInt>
isZero() bool
Checks if the Edwards curve point represents the point at infinity.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scale() EDPoint
Scale the Edwards curve point.
toBytes() List<int>
override
toHex() String
inherited
toString() String
A string representation of this object.
inherited

Operators

operator *(BigInt other) EDPoint
Multiply an Edwards curve point by a scalar.
override
operator +(BaseExtendedPointNative other) EDPoint
Addition operator for two Edwards curve points.
override
operator ==(Object other) bool
Equality operator for comparing two Edwards curve points.
override
operator unary-() EDPoint
operator unary-() BaseExtendedPointNative
inherited