Made return work
This commit is contained in:
parent
7b19ba5811
commit
f58543b81a
1 changed files with 2 additions and 3 deletions
|
@ -117,9 +117,8 @@ ECPubKey.prototype.multiply = function(key) {
|
|||
|
||||
ECPubKey.prototype.export = function(formt) {
|
||||
var o = this.pub.getEncoded(this.compressed)
|
||||
return
|
||||
formt == 'hex' ? conv.bytesToHex(o)
|
||||
: formt == 'bin' ? conv.bytesToString(o)
|
||||
return formt == 'hex' ? conv.bytesToHex(o)
|
||||
: formt == 'bin' ? conv.bytesToString(o)
|
||||
: o;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue