Browse Source

Point: Return the curve point instead of instantiating each time

patch-2
Esteban Ordano 10 years ago
parent
commit
0bcfec9f2f
  1. 2
      lib/crypto/point.js

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

Loading…
Cancel
Save