#include <primitives/transaction.h>
#include <script/sign.h>
#include <array>
Go to the source code of this file.
|
CMutableTransaction | BuildCreditingTransaction (const CScript &scriptPubKey, int nValue=0) |
|
CMutableTransaction | BuildSpendingTransaction (const CScript &scriptSig, const CScriptWitness &scriptWitness, const CTransaction &txCredit) |
|
std::vector< CMutableTransaction > | SetupDummyInputs (FillableSigningProvider &keystoreRet, CCoinsViewCache &coinsRet, const std::array< CAmount, 4 > &nValues) |
|
void | BulkTransaction (CMutableTransaction &tx, int32_t target_weight) |
|
bool | SignSignature (const SigningProvider &provider, const CScript &fromPubKey, CMutableTransaction &txTo, unsigned int nIn, const CAmount &amount, int nHashType, SignatureData &sig_data) |
| Produce a satisfying script (scriptSig or witness). More...
|
|
bool | SignSignature (const SigningProvider &provider, const CTransaction &txFrom, CMutableTransaction &txTo, unsigned int nIn, int nHashType, SignatureData &sig_data) |
|
◆ BuildCreditingTransaction()
◆ BuildSpendingTransaction()
◆ BulkTransaction()
◆ SetupDummyInputs()
◆ SignSignature() [1/2]
Produce a satisfying script (scriptSig or witness).
- Parameters
-
provider | Utility containing the information necessary to solve a script. |
fromPubKey | The script to produce a satisfaction for. |
txTo | The spending transaction. |
nIn | The index of the input in txTo referring the output being spent. |
amount | The value of the output being spent. |
nHashType | Signature hash type. |
sig_data | Additional data provided to solve a script. Filled with the resulting satisfying script and whether the satisfaction is complete. |
- Returns
- True if the produced script is entirely satisfying
fromPubKey
.
Definition at line 94 of file transaction_utils.cpp.
◆ SignSignature() [2/2]