本文整理了Java中org.bitcoinj.wallet.Wallet.checkNoDeterministicKeys()
方法的一些代码示例,展示了Wallet.checkNoDeterministicKeys()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Wallet.checkNoDeterministicKeys()
方法的具体详情如下:
包路径:org.bitcoinj.wallet.Wallet
类名称:Wallet
方法名:checkNoDeterministicKeys
暂无
代码示例来源:origin: fr.acinq/bitcoinj-core
/** Takes a list of keys and an AES key, then encrypts and imports them in one step using the current keycrypter. */
public int importKeysAndEncrypt(final List<ECKey> keys, KeyParameter aesKey) {
keyChainGroupLock.lock();
try {
checkNoDeterministicKeys(keys);
return keyChainGroup.importKeysAndEncrypt(keys, aesKey);
} finally {
keyChainGroupLock.unlock();
}
}
代码示例来源:origin: cash.bitcoinj/bitcoinj-core
/** Takes a list of keys and an AES key, then encrypts and imports them in one step using the current keycrypter. */
public int importKeysAndEncrypt(final List<ECKey> keys, KeyParameter aesKey) {
keyChainGroupLock.lock();
try {
checkNoDeterministicKeys(keys);
return keyChainGroup.importKeysAndEncrypt(keys, aesKey);
} finally {
keyChainGroupLock.unlock();
}
}
代码示例来源:origin: greenaddress/GreenBits
/** Takes a list of keys and an AES key, then encrypts and imports them in one step using the current keycrypter. */
public int importKeysAndEncrypt(final List<ECKey> keys, KeyParameter aesKey) {
keyChainGroupLock.lock();
try {
checkNoDeterministicKeys(keys);
return keyChainGroup.importKeysAndEncrypt(keys, aesKey);
} finally {
keyChainGroupLock.unlock();
}
}
代码示例来源:origin: HashEngineering/dashj
/** Takes a list of keys and an AES key, then encrypts and imports them in one step using the current keycrypter. */
public int importKeysAndEncrypt(final List<ECKey> keys, KeyParameter aesKey) {
keyChainGroupLock.lock();
try {
checkNoDeterministicKeys(keys);
return keyChainGroup.importKeysAndEncrypt(keys, aesKey);
} finally {
keyChainGroupLock.unlock();
}
}
代码示例来源:origin: HashEngineering/dashj
/**
* Imports the given keys to the wallet.
* If {@link Wallet#autosaveToFile(java.io.File, long, java.util.concurrent.TimeUnit, org.bitcoinj.wallet.WalletFiles.Listener)}
* has been called, triggers an auto save bypassing the normal coalescing delay and event handlers.
* Returns the number of keys added, after duplicates are ignored. The onKeyAdded event will be called for each key
* in the list that was not already present.
*/
public int importKeys(final List<ECKey> keys) {
// API usage check.
checkNoDeterministicKeys(keys);
int result;
keyChainGroupLock.lock();
try {
result = keyChainGroup.importKeys(keys);
} finally {
keyChainGroupLock.unlock();
}
saveNow();
return result;
}
代码示例来源:origin: greenaddress/GreenBits
/**
* Imports the given keys to the wallet.
* If {@link Wallet#autosaveToFile(java.io.File, long, java.util.concurrent.TimeUnit, org.bitcoinj.wallet.WalletFiles.Listener)}
* has been called, triggers an auto save bypassing the normal coalescing delay and event handlers.
* Returns the number of keys added, after duplicates are ignored. The onKeyAdded event will be called for each key
* in the list that was not already present.
*/
public int importKeys(final List<ECKey> keys) {
// API usage check.
checkNoDeterministicKeys(keys);
int result;
keyChainGroupLock.lock();
try {
result = keyChainGroup.importKeys(keys);
} finally {
keyChainGroupLock.unlock();
}
saveNow();
return result;
}
代码示例来源:origin: cash.bitcoinj/bitcoinj-core
/**
* Imports the given keys to the wallet.
* If {@link Wallet#autosaveToFile(java.io.File, long, java.util.concurrent.TimeUnit, org.bitcoinj.wallet.WalletFiles.Listener)}
* has been called, triggers an auto save bypassing the normal coalescing delay and event handlers.
* Returns the number of keys added, after duplicates are ignored. The onKeyAdded event will be called for each key
* in the list that was not already present.
*/
public int importKeys(final List<ECKey> keys) {
// API usage check.
checkNoDeterministicKeys(keys);
int result;
keyChainGroupLock.lock();
try {
result = keyChainGroup.importKeys(keys);
} finally {
keyChainGroupLock.unlock();
}
saveNow();
return result;
}
代码示例来源:origin: fr.acinq/bitcoinj-core
/**
* Imports the given keys to the wallet.
* If {@link Wallet#autosaveToFile(java.io.File, long, java.util.concurrent.TimeUnit, org.bitcoinj.wallet.WalletFiles.Listener)}
* has been called, triggers an auto save bypassing the normal coalescing delay and event handlers.
* Returns the number of keys added, after duplicates are ignored. The onKeyAdded event will be called for each key
* in the list that was not already present.
*/
public int importKeys(final List<ECKey> keys) {
// API usage check.
checkNoDeterministicKeys(keys);
int result;
keyChainGroupLock.lock();
try {
result = keyChainGroup.importKeys(keys);
} finally {
keyChainGroupLock.unlock();
}
saveNow();
return result;
}
内容来源于网络,如有侵权,请联系作者删除!