Package | Description |
---|---|
com.google.bitcoin.core | |
com.google.bitcoin.crypto |
Modifier and Type | Method and Description |
---|---|
static Transaction.SigHash |
Transaction.SigHash.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Transaction.SigHash[] |
Transaction.SigHash.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
TransactionInput |
Transaction.addSignedInput(TransactionOutPoint prevOut,
Script scriptPubKey,
ECKey sigKey,
Transaction.SigHash sigHash,
boolean anyoneCanPay)
Adds a new and fully signed input for the given parameters.
|
TransactionSignature |
Transaction.calculateSignature(int inputIndex,
ECKey key,
org.spongycastle.crypto.params.KeyParameter aesKey,
byte[] connectedPubKeyScript,
Transaction.SigHash hashType,
boolean anyoneCanPay)
Calculates a signature that is valid for being inserted into the input at the given position.
|
TransactionSignature |
Transaction.calculateSignature(int inputIndex,
ECKey key,
Script connectedPubKeyScript,
Transaction.SigHash hashType,
boolean anyoneCanPay)
Calculates a signature that is valid for being inserted into the input at the given position.
|
Sha256Hash |
Transaction.hashForSignature(int inputIndex,
byte[] connectedScript,
Transaction.SigHash type,
boolean anyoneCanPay)
Calculates a signature hash, that is, a hash of a simplified form of the transaction.
|
Sha256Hash |
Transaction.hashForSignature(int inputIndex,
Script connectedScript,
Transaction.SigHash type,
boolean anyoneCanPay)
Calculates a signature hash, that is, a hash of a simplified form of the transaction.
|
void |
Transaction.signInputs(Transaction.SigHash hashType,
Wallet wallet)
Once a transaction has some inputs and outputs added, the signatures in the inputs can be calculated.
|
void |
Transaction.signInputs(Transaction.SigHash hashType,
Wallet wallet,
org.spongycastle.crypto.params.KeyParameter aesKey)
Once a transaction has some inputs and outputs added, the signatures in the inputs can be calculated.
|
Modifier and Type | Method and Description |
---|---|
Transaction.SigHash |
TransactionSignature.sigHashMode() |
Modifier and Type | Method and Description |
---|---|
static int |
TransactionSignature.calcSigHashValue(Transaction.SigHash mode,
boolean anyoneCanPay)
Calculates the byte used in the protocol to represent the combination of mode and anyoneCanPay.
|
void |
TransactionSignature.setSigHash(Transaction.SigHash mode,
boolean anyoneCanPay)
Configures the sighashFlags field as appropriate.
|
Constructor and Description |
---|
TransactionSignature(ECKey.ECDSASignature signature,
Transaction.SigHash mode,
boolean anyoneCanPay)
Constructs a transaction signature based on the ECDSA signature.
|
Copyright © 2014. All rights reserved.