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

Equals() public method

public Equals ( ECCurve other ) : bool
other ECCurve
return bool
		public virtual bool Equals(ECCurve other)
		{
			if(this == other)
				return true;
			if(null == other)
				return false;
			return Field.Equals(other.Field)
				&& A.ToBigInteger().Equals(other.A.ToBigInteger())
				&& B.ToBigInteger().Equals(other.B.ToBigInteger());
		}

Same methods

ECCurve::Equals ( object obj ) : bool

Usage Example

コード例 #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));
        }
All Usage Examples Of NBitcoin.BouncyCastle.Math.EC.ECCurve::Equals