PublicKey constructor

PublicKey(
  1. Curve curve,
  2. BigInt X,
  3. BigInt Y
)

Implementation

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