ProjectiveECCPoint constructor

ProjectiveECCPoint({
  1. required CurveFp curve,
  2. required BigInt x,
  3. required BigInt y,
  4. required BigInt z,
  5. BigInt? order,
  6. bool generator = false,
})

Constructs a ProjectiveECCPoint from the given coordinates and optional order and generator flag. The curve parameter specifies the elliptic curve. x, y, and z are the projective coordinates of the point. order is the order of the point, and generator indicates if the point is a generator.

Implementation

factory ProjectiveECCPoint(
    {required CurveFp curve,
    required BigInt x,
    required BigInt y,
    required BigInt z,
    BigInt? order,
    bool generator = false}) {
  final coords = [x, y, z];
  return ProjectiveECCPoint._(curve, coords,
      generator: generator, order: order);
}