|
|
@ -30,7 +30,7 @@ Base58.encode = function(buf) { |
|
|
|
Base58.decode = function(str) { |
|
|
|
if (typeof str !== 'string') |
|
|
|
throw new Error('Input should be a string'); |
|
|
|
return bs58.decode(str); |
|
|
|
return new Buffer(bs58.decode(str)); |
|
|
|
}; |
|
|
|
|
|
|
|
Base58.prototype.fromBuffer = function(buf) { |
|
|
|