PublicKey.fromPoint constructor
PublicKey.fromPoint(
- Curve curve,
- 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;
}
}