From ce9c72dfcf74296255d26c7977681cdf4e0176af Mon Sep 17 00:00:00 2001 From: Danny Diekroeger Date: Mon, 25 Mar 2019 14:10:53 -0700 Subject: [PATCH] BG-11612 use FromBase58 --- app/sign.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/sign.js b/app/sign.js index d77cde7..eeb3e88 100644 --- a/app/sign.js +++ b/app/sign.js @@ -342,7 +342,7 @@ const parseKey = function(rawkey, coin, path) { } // if it doesn't have commas, we expect it is an xprv or xlmsecret properly formatted if(path) { - let node = utxoLib.HDNode.fromPrivateKeyBuffer(Buffer.from(rawkey, 'hex')); + let node = utxoLib.HDNode.fromBase58(rawkey); node = node.derivePath(path); return node.toBase58(); }