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