From 51b0d83444dbfc2650256b30b398e5b323071a3e Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 5 Feb 2016 03:50:02 -0800 Subject: [PATCH] remove _deriveKey --- lib/bcoin/wallet.js | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/lib/bcoin/wallet.js b/lib/bcoin/wallet.js index 2102c047..ccfcc3d6 100644 --- a/lib/bcoin/wallet.js +++ b/lib/bcoin/wallet.js @@ -755,30 +755,6 @@ Wallet.prototype.createKey = function createKey(change, index) { }; }; -Wallet.prototype._deriveKey = function _deriveKey(purposeKey, cosignerIndex, change, index) { - var path, key; - - assert(this.derivation !== 'normal'); - - if (typeof change === 'string') { - path = change; - } else { - if (index == null) - index = change ? this.changeDepth : this.addressDepth; - path = 'm/' + (change ? 1 : 0) + '/' + index; - } - - key = this.derivation === 'bip45' - ? purposeKey.derive(cosignerIndex) - : purposeKey; - - key = key.derive(path); - - key.path = path; - - return key; -}; - Wallet.prototype.setAddressDepth = function setAddressDepth(depth) { assert(this.derivation !== 'normal'); for (var i = this.addressDepth; i < depth; i++)