ProjectiveECCPoint.fromAffine constructor

ProjectiveECCPoint.fromAffine(
  1. BaseProjectivePointNative point, {
  2. 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,
  );
}