org.bitcoinj.wallet.Wallet.maybeUpgradeToHD()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(6.6k)|赞(0)|评价(0)|浏览(90)

本文整理了Java中org.bitcoinj.wallet.Wallet.maybeUpgradeToHD()方法的一些代码示例,展示了Wallet.maybeUpgradeToHD()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Wallet.maybeUpgradeToHD()方法的具体详情如下:
包路径:org.bitcoinj.wallet.Wallet
类名称:Wallet
方法名:maybeUpgradeToHD

Wallet.maybeUpgradeToHD介绍

暂无

代码示例

代码示例来源:origin: cash.bitcoinj/bitcoinj-core

private void maybeUpgradeToHD() throws DeterministicUpgradeRequiresPassword {
  maybeUpgradeToHD(null);
}

代码示例来源:origin: fr.acinq/bitcoinj-core

private void maybeUpgradeToHD() throws DeterministicUpgradeRequiresPassword {
  maybeUpgradeToHD(null);
}

代码示例来源:origin: greenaddress/GreenBits

private void maybeUpgradeToHD() throws DeterministicUpgradeRequiresPassword {
  maybeUpgradeToHD(null);
}

代码示例来源:origin: cash.bitcoinj/bitcoinj-core

/** 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();
  }
}

代码示例来源:origin: greenaddress/GreenBits

/**
 * 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();
  }
}

代码示例来源:origin: HashEngineering/dashj

/** 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();
  }
}

代码示例来源:origin: greenaddress/GreenBits

/** 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();
  }
}

代码示例来源:origin: cash.bitcoinj/bitcoinj-core

/** 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();
  }
}

代码示例来源:origin: fr.acinq/bitcoinj-core

/** 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();
  }
}

代码示例来源:origin: HashEngineering/dashj

/** 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();
  }
}

代码示例来源:origin: cash.bitcoinj/bitcoinj-core

/**
 * 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();
  }
}

代码示例来源:origin: fr.acinq/bitcoinj-core

/**
 * 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();
  }
}

代码示例来源:origin: fr.acinq/bitcoinj-core

/** 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();
  }
}

代码示例来源:origin: HashEngineering/dashj

/**
 * 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();
  }
}

代码示例来源:origin: greenaddress/GreenBits

/** 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();
  }
}

代码示例来源:origin: fr.acinq/bitcoinj-core

/**
 * 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();
  }
}

代码示例来源:origin: cash.bitcoinj/bitcoinj-core

/**
 * 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();
  }
}

代码示例来源:origin: HashEngineering/dashj

/**
 * 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();
  }
}

代码示例来源:origin: greenaddress/GreenBits

/**
 * 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();
  }
}

代码示例来源:origin: HashEngineering/dashj

/**
 * 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();
  }
}

相关文章

微信公众号

最新文章

更多

Wallet类方法