Point: Return the curve point instead of instantiating each time

This commit is contained in:
Esteban Ordano 2015-02-06 09:19:57 -03:00
parent 73a973359b
commit 0bcfec9f2f
1 changed files with 1 additions and 1 deletions

View File

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