PublicKey.fromPoint constructor

PublicKey.fromPoint(
  1. Curve curve,
  2. AffinePoint p
)

Implementation

PublicKey.fromPoint(this.curve, AffinePoint p) : super.fromXY(p.X, p.Y) {
  // Validate that the point is on the curve
  if (!curve.isOnCurve(this)) {
    throw ErrPointNotOnCurve;
  }
}