func (pub *PublicKey) Check(curve elliptic.Curve) bool {
	if pub.Curve != curve {
		return false
	}
	if !curve.IsOnCurve(pub.X, pub.Y) {
		return false
	}
	return true
}
// Check if public key is valid for the curve
Check if public key is valid for the curve
// Check if public key is valid for the curve
func (pub *PublicKey) Check(curve elliptic.Curve) bool {
	if pub.Curve != curve {
		return false
	}
	if !curve.IsOnCurve(pub.X, pub.Y) {
		return false
	}
	return true
}
func ( pub * PublicKey ) Check ( curve elliptic . Curve ) bool { if pub . Curve != curve { return false } if ! curve . IsOnCurve ( pub . X , pub . Y ) { return false } return true }
Check if public key is valid for the curve
Check if public key is valid for the curve