http: fix hd key handling.

This commit is contained in:
Christopher Jeffrey 2016-10-05 07:25:03 -07:00
parent 323ea3eda5
commit 41a94dacd2
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

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