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) {