From cd4583f9547ca551b635b5530fba1ca21819bcd9 Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Tue, 25 Nov 2014 14:40:43 -0500 Subject: [PATCH] Encodings: Updated Base58 for the latest version. --- lib/encoding/base58.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/encoding/base58.js b/lib/encoding/base58.js index 8e7409e..6878b73 100644 --- a/lib/encoding/base58.js +++ b/lib/encoding/base58.js @@ -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) {