EDPoint class

A class representing a point on an Edwards curve, extending the abstract AbstractPoint class.

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.
getter/setter pairoverride-getter
generator bool
Indicates if this point is a generator point.
getter/setter pair
hashCode int
Calculates the hash code for the Edwards curve point.
no setteroverride
isInfinity bool
Checks if the Edwards curve point represents the point at infinity.
no setteroverride
order BigInt?
The order of the point (null if not set).
getter/setter pairoverride-getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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

Methods

doublePoint() EDPoint
Double an Edwards curve point.
override
getCoords() List<BigInt>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scale() EDPoint
Scale the Edwards curve point.
toBytes([EncodeType encodeType = EncodeType.comprossed]) List<int>
Converts the elliptic curve point to a byte array with the specified encoding type. The default encoding type is 'compressed'.
inherited
toHex([EncodeType encodeType = EncodeType.comprossed]) String
Encodes the elliptic curve point as a hexadecimal string with the specified encoding type. The default encoding type is 'compressed'.
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 +(AbstractPoint 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
Negation operator for an Edwards curve point.