示例#1
0
        public void IsOnCurveTest()
        {
            BigInt xA = new BigInt("489a03c58dcf7fcfc97e99ffef0bb4634", 16);
            BigInt yA = new BigInt("510c6972d795ec0c2b081b81de767f808", 16);
            Point  a  = new Point(xA, yA);
            BigInt xB = new BigInt("489a03c58dcf7fcfc91239ffef0bb4621", 16);
            BigInt yB = new BigInt("510c6972d795ec0ca5081b81de767f808", 16);
            Point  b  = new Point(xB, yB);

            Assert.IsTrue(curve.IsOnCurve(a));
            Assert.IsFalse(curve.IsOnCurve(b));
        }