|
|
@ -2,11 +2,15 @@ var Point = require('./point'); |
|
|
|
var bn = require('./bn'); |
|
|
|
var privkey = require('./privkey'); |
|
|
|
|
|
|
|
var Pubkey = function Pubkey(obj) { |
|
|
|
var Pubkey = function Pubkey(point) { |
|
|
|
if (!(this instanceof Pubkey)) |
|
|
|
return new Pubkey(obj); |
|
|
|
if (obj) |
|
|
|
if (point instanceof Point) |
|
|
|
this.point = point; |
|
|
|
else if (point) { |
|
|
|
var obj = point; |
|
|
|
this.set(obj); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
Pubkey.prototype.set = function(obj) { |
|
|
|