From 41a94dacd237ab661f01f668ee83d7db4d04688b Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 5 Oct 2016 07:25:03 -0700 Subject: [PATCH] http: fix hd key handling. --- lib/http/server.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/http/server.js b/lib/http/server.js index 277aaf97..f9735765 100644 --- a/lib/http/server.js +++ b/lib/http/server.js @@ -307,7 +307,7 @@ HTTPServer.prototype._init = function _init() { if (params.accountKey) { enforce(typeof params.accountKey === 'string', 'accountKey must be a string.'); - options.accountKey = HD.fromExtended(params.accountKey); + options.accountKey = HD.fromBase58(params.accountKey); } if (params.timeout != null) { @@ -402,8 +402,8 @@ HTTPServer.prototype._init = function _init() { } if (params.master) { - enforce(typeof params.key === 'string', 'Key must be a string.'); - options.master = HD.fromExtended(params.master); + enforce(typeof params.master === 'string', 'Key must be a string.'); + options.master = HD.fromBase58(params.master); } if (params.mnemonic) {