diff --git a/lib/crypto/point.js b/lib/crypto/point.js index b4155c3e3..d2aea4908 100644 --- a/lib/crypto/point.js +++ b/lib/crypto/point.js @@ -63,7 +63,8 @@ Point.getN = function getN() { return new BN(ec.curve.n.toArray()); }; -Point.prototype._getX = Point.prototype.getX; +if (!Point.prototype._getX) + Point.prototype._getX = Point.prototype.getX; /** * @@ -75,7 +76,8 @@ Point.prototype.getX = function getX() { return new BN(this._getX().toArray()); }; -Point.prototype._getY = Point.prototype.getY; +if (!Point.prototype._getY) + Point.prototype._getY = Point.prototype.getY; /** *