This commit is contained in:
Ivan Socolsky 2015-08-31 17:16:45 -03:00
parent 094e19bc31
commit d1e318a5b7
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ var $ = require('preconditions').singleton();
var WalletUtils = require('bitcore-wallet-utils');
var BIP45_SHARED_INDEX = 0x80000000 - 1;
var SHARED_INDEX = 0x80000000 - 1;
function AddressManager() {};
@ -18,7 +18,7 @@ AddressManager.create = function(opts) {
x.receiveAddressIndex = 0;
x.changeAddressIndex = 0;
x.copayerIndex = (opts && _.isNumber(opts.copayerIndex)) ? opts.copayerIndex : BIP45_SHARED_INDEX;
x.copayerIndex = (opts && _.isNumber(opts.copayerIndex)) ? opts.copayerIndex : SHARED_INDEX;
return x;
};
@ -37,7 +37,7 @@ AddressManager.fromObj = function(obj) {
AddressManager.prototype.supportsDerivation = function() {
// BIP44 does not support copayer specific indexes
return !(this.derivationStrategy == WalletUtils.DERIVATION_STRATEGIES.BIP44 && this.copayerIndex != BIP45_SHARED_INDEX);
return !(this.derivationStrategy == WalletUtils.DERIVATION_STRATEGIES.BIP44 && this.copayerIndex != SHARED_INDEX);
};
AddressManager.prototype._incrementIndex = function(isChange) {

View File

@ -2,7 +2,7 @@
"name": "bitcore-wallet-service",
"description": "A service for Mutisig HD Bitcoin Wallets",
"author": "BitPay Inc",
"version": "0.1.10",
"version": "0.2.0",
"keywords": [
"bitcoin",
"copay",