Skip to content

Commit

Permalink
point X/Y overflow fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre committed Apr 11, 2018
1 parent 7eaae19 commit 84702a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/crypto/point.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
*
Expand All @@ -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;

/**
*
Expand Down

0 comments on commit 84702a6

Please sign in to comment.