CurveFp class

This class represents a finite field elliptic curve defined over a prime field (Fp).

Inheritance

Constructors

CurveFp({required BigInt p, required BigInt a, required BigInt b, required BigInt? h})
Prime field modulus

Properties

a BigInt
Coefficient 'a' in the elliptic curve equation
final
b BigInt
Coefficient 'b' in the elliptic curve equation
final
baselen int
Get the length of the base point in the curve
no setteroverride
h BigInt?
// Optional cofactor 'h'
final
hashCode int
Calculate the hash code of the CurveFp 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 CurveFp objects are equal based on their properties
override