v0.2.0
This commit is contained in:
parent
094e19bc31
commit
d1e318a5b7
|
@ -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) {
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue