private void maybeUpgradeToHD() throws DeterministicUpgradeRequiresPassword { maybeUpgradeToHD(null); }
private void maybeUpgradeToHD() throws DeterministicUpgradeRequiresPassword { maybeUpgradeToHD(null); }
private void maybeUpgradeToHD() throws DeterministicUpgradeRequiresPassword { maybeUpgradeToHD(null); }
/** See {@link org.bitcoinj.wallet.DeterministicKeyChain#setLookaheadThreshold(int)} for more info on this. */ public void setKeyChainGroupLookaheadThreshold(int num) { keyChainGroupLock.lock(); try { maybeUpgradeToHD(); keyChainGroup.setLookaheadThreshold(num); } finally { keyChainGroupLock.unlock(); } }
/** * Returns address for a {@link #currentKey(org.bitcoinj.wallet.KeyChain.KeyPurpose)} */ public Address currentAddress(KeyChain.KeyPurpose purpose) { keyChainGroupLock.lock(); try { maybeUpgradeToHD(); return keyChainGroup.currentAddress(purpose); } finally { keyChainGroupLock.unlock(); } }
/** See {@link org.bitcoinj.wallet.DeterministicKeyChain#setLookaheadThreshold(int)} for more info on this. */ public int getKeyChainGroupLookaheadThreshold() { keyChainGroupLock.lock(); try { maybeUpgradeToHD(); return keyChainGroup.getLookaheadThreshold(); } finally { keyChainGroupLock.unlock(); } }
/** See {@link org.bitcoinj.wallet.DeterministicKeyChain#setLookaheadThreshold(int)} for more info on this. */ public void setKeyChainGroupLookaheadThreshold(int num) { keyChainGroupLock.lock(); try { maybeUpgradeToHD(); keyChainGroup.setLookaheadThreshold(num); } finally { keyChainGroupLock.unlock(); } }
/** See {@link org.bitcoinj.wallet.DeterministicKeyChain#setLookaheadThreshold(int)} for more info on this. */ public int getKeyChainGroupLookaheadThreshold() { keyChainGroupLock.lock(); try { maybeUpgradeToHD(); return keyChainGroup.getLookaheadThreshold(); } finally { keyChainGroupLock.unlock(); } }
/** See {@link org.bitcoinj.wallet.DeterministicKeyChain#setLookaheadThreshold(int)} for more info on this. */ public int getKeyChainGroupLookaheadThreshold() { keyChainGroupLock.lock(); try { maybeUpgradeToHD(); return keyChainGroup.getLookaheadThreshold(); } finally { keyChainGroupLock.unlock(); } }
/** See {@link org.bitcoinj.wallet.DeterministicKeyChain#setLookaheadThreshold(int)} for more info on this. */ public void setKeyChainGroupLookaheadThreshold(int num) { keyChainGroupLock.lock(); try { maybeUpgradeToHD(); keyChainGroup.setLookaheadThreshold(num); } finally { keyChainGroupLock.unlock(); } }
/** * Returns address for a {@link #currentKey(org.bitcoinj.wallet.KeyChain.KeyPurpose)} */ public Address currentAddress(KeyChain.KeyPurpose purpose) { keyChainGroupLock.lock(); try { maybeUpgradeToHD(); return keyChainGroup.currentAddress(purpose); } finally { keyChainGroupLock.unlock(); } }
/** * Returns address for a {@link #currentKey(org.bitcoinj.wallet.KeyChain.KeyPurpose)} */ public Address currentAddress(KeyChain.KeyPurpose purpose) { keyChainGroupLock.lock(); try { maybeUpgradeToHD(); return keyChainGroup.currentAddress(purpose); } finally { keyChainGroupLock.unlock(); } }
/** See {@link org.bitcoinj.wallet.DeterministicKeyChain#setLookaheadThreshold(int)} for more info on this. */ public void setKeyChainGroupLookaheadThreshold(int num) { keyChainGroupLock.lock(); try { maybeUpgradeToHD(); keyChainGroup.setLookaheadThreshold(num); } finally { keyChainGroupLock.unlock(); } }
/** * Returns address for a {@link #currentKey(org.bitcoinj.wallet.KeyChain.KeyPurpose)} */ public Address currentAddress(KeyChain.KeyPurpose purpose) { keyChainGroupLock.lock(); try { maybeUpgradeToHD(); return keyChainGroup.currentAddress(purpose); } finally { keyChainGroupLock.unlock(); } }
/** See {@link org.bitcoinj.wallet.DeterministicKeyChain#setLookaheadThreshold(int)} for more info on this. */ public int getKeyChainGroupLookaheadThreshold() { keyChainGroupLock.lock(); try { maybeUpgradeToHD(); return keyChainGroup.getLookaheadThreshold(); } finally { keyChainGroupLock.unlock(); } }
/** * Returns a key for the given HD path, assuming it's already been derived. You normally shouldn't use this: * use currentReceiveKey/freshReceiveKey instead. */ public DeterministicKey getKeyByPath(List<ChildNumber> path) { keyChainGroupLock.lock(); try { maybeUpgradeToHD(); return keyChainGroup.getActiveKeyChain().getKeyByPath(path, false); } finally { keyChainGroupLock.unlock(); } }
/** * Returns a key for the given HD path, assuming it's already been derived. You normally shouldn't use this: * use currentReceiveKey/freshReceiveKey instead. */ public DeterministicKey getKeyByPath(List<ChildNumber> path) { keyChainGroupLock.lock(); try { maybeUpgradeToHD(); return keyChainGroup.getActiveKeyChain().getKeyByPath(path, false); } finally { keyChainGroupLock.unlock(); } }
/** * Returns a key for the given HD path, assuming it's already been derived. You normally shouldn't use this: * use currentReceiveKey/freshReceiveKey instead. */ public DeterministicKey getKeyByPath(List<ChildNumber> path) { keyChainGroupLock.lock(); try { maybeUpgradeToHD(); return keyChainGroup.getActiveKeyChain().getKeyByPath(path, false); } finally { keyChainGroupLock.unlock(); } }
/** * Returns a key for the given HD path, assuming it's already been derived. You normally shouldn't use this: * use currentReceiveKey/freshReceiveKey instead. */ public DeterministicKey getKeyByPath(List<ChildNumber> path) { keyChainGroupLock.lock(); try { maybeUpgradeToHD(); return keyChainGroup.getActiveKeyChain().getKeyByPath(path, false); } finally { keyChainGroupLock.unlock(); } }
/** * Returns a public-only DeterministicKey that can be used to set up a watching wallet: that is, a wallet that * can import transactions from the block chain just as the normal wallet can, but which cannot spend. Watching * wallets are very useful for things like web servers that accept payments. This key corresponds to the account * zero key in the recommended BIP32 hierarchy. */ public DeterministicKey getWatchingKey() { keyChainGroupLock.lock(); try { maybeUpgradeToHD(); return keyChainGroup.getActiveKeyChain().getWatchingKey(); } finally { keyChainGroupLock.unlock(); } }