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.
|
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.
|
ECKey |
ECKey.decrypt(org.spongycastle.crypto.params.KeyParameter aesKey)
Create a decrypted private key with 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.
|
ECKey |
ECKey.maybeDecrypt(org.spongycastle.crypto.params.KeyParameter aesKey)
Creates decrypted private key if needed.
|
ECKey.ECDSASignature |
ECKey.sign(Sha256Hash input)
Signs the given hash and returns the R and S components as BigIntegers.
|
ECKey.ECDSASignature |
ECKey.sign(Sha256Hash input,
org.spongycastle.crypto.params.KeyParameter aesKey)
Signs the given hash and returns the R and S components as BigIntegers.
|
String |
ECKey.signMessage(String message)
Signs a text message using the standard Bitcoin messaging signing format and returns the signature as a base64
encoded string.
|
String |
ECKey.signMessage(String message,
org.spongycastle.crypto.params.KeyParameter aesKey)
Signs a text message using the standard Bitcoin messaging signing format and returns the signature as a base64
encoded string.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
KeyCrypterScrypt.decrypt(EncryptedData privateKeyToDecode,
org.spongycastle.crypto.params.KeyParameter aesKey)
Decrypt bytes previously encrypted with this class.
|
byte[] |
KeyCrypter.decrypt(EncryptedData encryptedBytesToDecode,
org.spongycastle.crypto.params.KeyParameter aesKey)
Decrypt the provided encrypted bytes, converting them into unencrypted bytes.
|
DeterministicKey |
DeterministicKey.decrypt(KeyCrypter keyCrypter,
org.spongycastle.crypto.params.KeyParameter aesKey) |
DeterministicKey |
DeterministicKey.decrypt(org.spongycastle.crypto.params.KeyParameter aesKey) |
org.spongycastle.crypto.params.KeyParameter |
KeyCrypterScrypt.deriveKey(CharSequence password)
Generate AES key.
|
org.spongycastle.crypto.params.KeyParameter |
KeyCrypter.deriveKey(CharSequence password)
Create a KeyParameter (which typically contains an AES key)
|
EncryptedData |
KeyCrypterScrypt.encrypt(byte[] plainBytes,
org.spongycastle.crypto.params.KeyParameter aesKey)
Password based encryption using AES - CBC 256 bits.
|
EncryptedData |
KeyCrypter.encrypt(byte[] plainBytes,
org.spongycastle.crypto.params.KeyParameter aesKey)
Encrypt the supplied bytes, converting them into ciphertext.
|
DeterministicKey |
DeterministicKey.encrypt(KeyCrypter keyCrypter,
org.spongycastle.crypto.params.KeyParameter aesKey) |
DeterministicKey |
DeterministicKey.encrypt(KeyCrypter keyCrypter,
org.spongycastle.crypto.params.KeyParameter aesKey,
DeterministicKey newParent) |
ECKey.ECDSASignature |
DeterministicKey.sign(Sha256Hash input,
org.spongycastle.crypto.params.KeyParameter aesKey) |
Copyright © 2014. All rights reserved.