ImportPoint() public method

public ImportPoint ( NBitcoin.BouncyCastle.Math.EC.ECPoint p ) : NBitcoin.BouncyCastle.Math.EC.ECPoint
p NBitcoin.BouncyCastle.Math.EC.ECPoint
return NBitcoin.BouncyCastle.Math.EC.ECPoint
コード例 #1
0
        public static ECPoint ImportPoint(ECCurve c, ECPoint p)
        {
            ECCurve cp = p.Curve;

            if (!c.Equals(cp))
            {
                throw new ArgumentException("Point must be on the same curve");
            }

            return(c.ImportPoint(p));
        }
コード例 #2
0
ファイル: ECAlgorithms.cs プロジェクト: woutersmit/NBitcoin
        public static ECPoint ImportPoint(ECCurve c, ECPoint p)
        {
            ECCurve cp = p.Curve;
            if (!c.Equals(cp))
                throw new ArgumentException("Point must be on the same curve");

            return c.ImportPoint(p);
        }