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.signers |
Transaction signers know how to calculate signatures over transactions in different contexts, for example, using
local private keys or fetching them from remote servers.
|
Modifier and Type | Method and Description |
---|---|
static ECKey.ECDSASignature |
ECKey.ECDSASignature.decodeFromDER(byte[] bytes) |
protected ECKey.ECDSASignature |
ECKey.doSign(Sha256Hash input,
BigInteger privateKeyForSigning) |
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.
|
ECKey.ECDSASignature |
ECKey.ECDSASignature.toCanonicalised()
Will automatically adjust the S component to be less than or equal to half the curve order, if necessary.
|
Modifier and Type | Method and Description |
---|---|
static ECKey |
ECKey.recoverFromSignature(int recId,
ECKey.ECDSASignature sig,
Sha256Hash message,
boolean compressed)
Given the components of a signature and a selector value, recover and return the public key
that generated the signature according to the algorithm in SEC1v2 section 4.1.6.
|
static boolean |
ECKey.verify(byte[] data,
ECKey.ECDSASignature signature,
byte[] pub)
Verifies the given ECDSA signature against the message bytes using the public key bytes.
|
boolean |
ECKey.verify(Sha256Hash sigHash,
ECKey.ECDSASignature signature)
Verifies the given R/S pair (signature) against a hash using the public key.
|
Modifier and Type | Class and Description |
---|---|
class |
TransactionSignature
A TransactionSignature wraps an
ECKey.ECDSASignature and adds methods for handling
the additional SIGHASH mode byte that is used. |
Modifier and Type | Method and Description |
---|---|
ECKey.ECDSASignature |
DeterministicKey.sign(Sha256Hash input,
org.spongycastle.crypto.params.KeyParameter aesKey) |
ECKey.ECDSASignature |
TransactionSignature.toCanonicalised() |
Constructor and Description |
---|
TransactionSignature(ECKey.ECDSASignature signature,
Transaction.SigHash mode,
boolean anyoneCanPay)
Constructs a transaction signature based on the ECDSA signature.
|
Modifier and Type | Field and Description |
---|---|
ECKey.ECDSASignature |
CustomTransactionSigner.SignatureAndKey.sig |
Constructor and Description |
---|
SignatureAndKey(ECKey.ECDSASignature sig,
ECKey pubKey) |
Copyright © 2014. All rights reserved.