ECPoint constructor

ECPoint(
  1. ECCurve curve,
  2. ECFieldElement? x,
  3. ECFieldElement? y, [
  4. bool withCompression = false,
])

Create a point that encodes with or without point compression.

@param curve the curve to use @param x affine x co-ordinate @param y affine y co-ordinate @param withCompression if true encode with point compression

Implementation

ECPoint(ECCurve curve, ECFieldElement? x, ECFieldElement? y,
    [bool withCompression = false])
    : super(curve, x, y, withCompression, _wNafMultiplier) {
  if ((x != null && y == null) || (x == null && y != null)) {
    throw ArgumentError('Exactly one of the field elements is null');
  }
}