|
@ -7,7 +7,7 @@ var p = ec.curve.point(); |
|
|
var Curve = Object.getPrototypeOf(ec.curve); |
|
|
var Curve = Object.getPrototypeOf(ec.curve); |
|
|
Point.prototype = Object.getPrototypeOf(p); |
|
|
Point.prototype = Object.getPrototypeOf(p); |
|
|
|
|
|
|
|
|
Point.pointFromX = ec.curve.pointFromX.bind(ec.curve); |
|
|
Point.fromX = ec.curve.pointFromX.bind(ec.curve); |
|
|
|
|
|
|
|
|
Point.getG = function() { |
|
|
Point.getG = function() { |
|
|
var p = Point(ec.curve.g.getX(), ec.curve.g.getY()); |
|
|
var p = Point(ec.curve.g.getX(), ec.curve.g.getY()); |
|
|