|
|
@ -343,8 +343,8 @@ PublicKey.isValid = function(data) { |
|
|
|
*/ |
|
|
|
PublicKey.prototype.toObject = function toObject() { |
|
|
|
return { |
|
|
|
x: this.point.getX().toString('hex'), |
|
|
|
y: this.point.getY().toString('hex'), |
|
|
|
x: this.point.getX().toString('hex', 2), |
|
|
|
y: this.point.getY().toString('hex', 2), |
|
|
|
compressed: this.compressed |
|
|
|
}; |
|
|
|
}; |
|
|
|