NBitcoin.BouncyCastle.Math.EC.ECCurve.ValidatePoint C# (CSharp) Method

ValidatePoint() public method

public ValidatePoint ( BigInteger x, BigInteger y ) : NBitcoin.BouncyCastle.Math.EC.ECPoint
x BigInteger
y BigInteger
return NBitcoin.BouncyCastle.Math.EC.ECPoint
		public virtual ECPoint ValidatePoint(BigInteger x, BigInteger y)
		{
			ECPoint p = CreatePoint(x, y);
			if(!p.IsValid())
			{
				throw new ArgumentException("Invalid point coordinates");
			}
			return p;
		}

Same methods

ECCurve::ValidatePoint ( BigInteger x, BigInteger y, bool withCompression ) : NBitcoin.BouncyCastle.Math.EC.ECPoint