CurveED class

This class represents a twisted Edwards elliptic curve defined over a prime field.

Inheritance

Constructors

CurveED({required BigInt p, required BigInt a, required BigInt d, required BigInt h, required BigInt order})
Prime field modulus

Properties

a BigInt
Coefficient 'a' in the twisted Edwards curve equation
final
baselen int
Get the length of the base point in the curve
no setteroverride
d BigInt
Coefficient 'd' in the twisted Edwards curve equation
final
h BigInt
Cofactor 'h'
final
hashCode int
Calculate the hash code of the CurveED object
no setteroverride
p BigInt
Prime field modulus
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
verifyingKeyLength int
Get the length of the verifying key in the curve
no setteroverride

Methods

cofactor() BigInt
Get the cofactor 'h' value
containsPoint(BigInt x, BigInt y) bool
Check if a given point (x, y) lies on the curve
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
Check if two CurveED objects are equal based on their properties
override