From 0bcfec9f2f4b3a6cacc5791dd2e57c018cefe8b7 Mon Sep 17 00:00:00 2001 From: Esteban Ordano Date: Fri, 6 Feb 2015 09:19:57 -0300 Subject: [PATCH] Point: Return the curve point instead of instantiating each time --- lib/crypto/point.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crypto/point.js b/lib/crypto/point.js index 2e4b9d1..2bac5c8 100644 --- a/lib/crypto/point.js +++ b/lib/crypto/point.js @@ -49,7 +49,7 @@ Point.fromX = function fromX(odd, x){ * @returns {Point} An instance of the base point. */ Point.getG = function getG() { - return Point(ec.curve.g.getX(), ec.curve.g.getY()); + return ec.curve.g; }; /**