Package | Description |
---|---|
com.google.bitcoin.core | |
com.google.bitcoin.crypto |
Modifier and Type | Method and Description |
---|---|
KeyCrypter |
Wallet.getKeyCrypter()
Get the wallet's KeyCrypter.
|
KeyCrypter |
ECKey.getKeyCrypter() |
Modifier and Type | Method and Description |
---|---|
ECKey |
Wallet.addNewEncryptedKey(KeyCrypter keyCrypter,
org.spongycastle.crypto.params.KeyParameter aesKey)
Create a new, random encrypted ECKey and add it to the wallet.
|
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.
|
void |
Wallet.setKeyCrypter(KeyCrypter keyCrypter)
Sets the wallet's KeyCrypter.
|
Constructor and Description |
---|
ECKey(EncryptedPrivateKey encryptedPrivateKey,
byte[] pubKey,
KeyCrypter keyCrypter)
Create a new ECKey with an encrypted private key, a public key and a KeyCrypter.
|
Wallet(NetworkParameters params,
KeyCrypter keyCrypter)
Create a wallet with a keyCrypter to use in encrypting and decrypting keys.
|
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.
|
Copyright © 2014. All rights reserved.