Point: Return the curve point instead of instantiating each time
This commit is contained in:
parent
73a973359b
commit
0bcfec9f2f
|
@ -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…
Reference in New Issue