Package | Description |
---|---|
org.bitcoinj.core |
The core package contains classes for network messages like
Block and
Transaction , peer connectivity via PeerGroup ,
block chain management and the Wallet class. |
org.bitcoinj.crypto |
The crypto package contains classes that work with key derivation algorithms like scrypt (passwords to AES keys),
BIP 32 hierarchies (chains of keys from a root seed), X.509 utilities for the payment protocol and other general
cryptography tasks.
|
org.bitcoinj.wallet |
Classes that support the
Wallet , which knows how to find and save transactions relevant to
a set of keys or scripts, calculate balances, and spend money: the wallet has many features and can be extended
in various ways, please refer to the website for documentation on how to use it. |
Modifier and Type | Field and Description |
---|---|
protected KeyCrypter |
ECKey.keyCrypter |
Modifier and Type | Method and Description |
---|---|
KeyCrypter |
Wallet.getKeyCrypter()
Get the wallet's KeyCrypter, or null if the wallet is not encrypted.
|
KeyCrypter |
ECKey.getKeyCrypter()
Returns the KeyCrypter that was used to encrypt to encrypt this ECKey.
|
Modifier and Type | Method and Description |
---|---|
ECKey |
ECKey.decrypt(KeyCrypter keyCrypter,
org.spongycastle.crypto.params.KeyParameter aesKey)
Create a decrypted private key with the keyCrypter and AES key supplied.
|
void |
Wallet.encrypt(KeyCrypter keyCrypter,
org.spongycastle.crypto.params.KeyParameter aesKey)
Encrypt the wallet using the KeyCrypter and the AES key.
|
ECKey |
ECKey.encrypt(KeyCrypter keyCrypter,
org.spongycastle.crypto.params.KeyParameter aesKey)
Create an encrypted private key with the keyCrypter and the AES key supplied.
|
static boolean |
ECKey.encryptionIsReversible(ECKey originalKey,
ECKey encryptedKey,
KeyCrypter keyCrypter,
org.spongycastle.crypto.params.KeyParameter aesKey)
Check that it is possible to decrypt the key with the keyCrypter and that the original key is returned.
|
static ECKey |
ECKey.fromEncrypted(EncryptedData encryptedPrivateKey,
KeyCrypter crypter,
byte[] pubKey)
Constructs a key that has an encrypted private component.
|
Constructor and Description |
---|
ECKey(EncryptedData encryptedPrivateKey,
byte[] pubKey,
KeyCrypter keyCrypter)
Deprecated.
|
Modifier and Type | Class and Description |
---|---|
class |
KeyCrypterScrypt
This class encrypts and decrypts byte arrays and strings using scrypt as the
key derivation function and AES for the encryption.
|
Modifier and Type | Method and Description |
---|---|
KeyCrypter |
DeterministicKey.getKeyCrypter()
Returns this keys
KeyCrypter or the keycrypter of its parent key. |
Modifier and Type | Method and Description |
---|---|
DeterministicKey |
DeterministicKey.decrypt(KeyCrypter keyCrypter,
org.spongycastle.crypto.params.KeyParameter aesKey) |
DeterministicKey |
DeterministicKey.encrypt(KeyCrypter keyCrypter,
org.spongycastle.crypto.params.KeyParameter aesKey) |
DeterministicKey |
DeterministicKey.encrypt(KeyCrypter keyCrypter,
org.spongycastle.crypto.params.KeyParameter aesKey,
DeterministicKey newParent) |
Constructor and Description |
---|
DeterministicKey(ImmutableList<ChildNumber> childNumberPath,
byte[] chainCode,
KeyCrypter crypter,
org.spongycastle.math.ec.ECPoint pub,
EncryptedData priv,
DeterministicKey parent)
Constructs a key from its components.
|
Modifier and Type | Method and Description |
---|---|
KeyCrypter |
KeyChainGroup.getKeyCrypter()
Returns the key crypter or null if the group is not encrypted.
|
KeyCrypter |
EncryptableKeyChain.getKeyCrypter()
Returns the key crypter used by this key chain, or null if it's not encrypted.
|
KeyCrypter |
DeterministicKeyChain.getKeyCrypter() |
KeyCrypter |
BasicKeyChain.getKeyCrypter()
Returns the
KeyCrypter in use or null if the key chain is not encrypted. |
Modifier and Type | Method and Description |
---|---|
DeterministicSeed |
DeterministicSeed.decrypt(KeyCrypter crypter,
String passphrase,
org.spongycastle.crypto.params.KeyParameter aesKey) |
void |
KeyChainGroup.encrypt(KeyCrypter keyCrypter,
org.spongycastle.crypto.params.KeyParameter aesKey)
Encrypt the keys in the group using the KeyCrypter and the AES key.
|
DeterministicSeed |
DeterministicSeed.encrypt(KeyCrypter keyCrypter,
org.spongycastle.crypto.params.KeyParameter aesKey) |
static List<DeterministicKeyChain> |
DeterministicKeyChain.fromProtobuf(List<Protos.Key> keys,
KeyCrypter crypter)
Returns all the key chains found in the given list of keys.
|
static BasicKeyChain |
BasicKeyChain.fromProtobufEncrypted(List<Protos.Key> keys,
KeyCrypter crypter)
Returns a new BasicKeyChain that contains all basic, ORIGINAL type keys and also any encrypted keys extracted
from the list.
|
static KeyChainGroup |
KeyChainGroup.fromProtobufEncrypted(NetworkParameters params,
List<Protos.Key> keys,
int sigsRequiredToSpend,
KeyCrypter crypter) |
EncryptableKeyChain |
EncryptableKeyChain.toEncrypted(KeyCrypter keyCrypter,
org.spongycastle.crypto.params.KeyParameter aesKey)
Returns a new keychain holding identical/cloned keys to this chain, but encrypted under the given key.
|
DeterministicKeyChain |
DeterministicKeyChain.toEncrypted(KeyCrypter keyCrypter,
org.spongycastle.crypto.params.KeyParameter aesKey) |
BasicKeyChain |
BasicKeyChain.toEncrypted(KeyCrypter keyCrypter,
org.spongycastle.crypto.params.KeyParameter aesKey)
Encrypt the wallet using the KeyCrypter and the AES key.
|
Constructor and Description |
---|
BasicKeyChain(KeyCrypter crypter) |
Copyright © 2014. All rights reserved.