ProjectiveECCPoint.fromAffine constructor
ProjectiveECCPoint.fromAffine(
- BaseProjectivePointNative point, {
- bool generator = false,
Constructs a ProjectiveECCPoint from an BaseProjectivePointNative in affine coordinates.
Implementation
factory ProjectiveECCPoint.fromAffine(
BaseProjectivePointNative point, {
bool generator = false,
}) {
return ProjectiveECCPoint._(
point.curve,
[point.x, point.y, BigInt.one],
generator: generator,
order: point.order,
);
}