#include <attributes.h>
#include <coins.h>
#include <hash.h>
#include <pubkey.h>
#include <script/interpreter.h>
#include <script/keyorigin.h>
#include <script/standard.h>
#include <uint256.h>
Go to the source code of this file.
|
bool | ProduceSignature (const SigningProvider &provider, const BaseSignatureCreator &creator, const CScript &scriptPubKey, SignatureData &sigdata) |
| Produce a script signature using a generic signature creator. More...
|
|
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) |
|
SignatureData | DataFromTransaction (const CMutableTransaction &tx, unsigned int nIn, const CTxOut &txout) |
| Extract signature data from a transaction input, and insert it. More...
|
|
void | UpdateInput (CTxIn &input, const SignatureData &data) |
|
bool | IsSegWitOutput (const SigningProvider &provider, const CScript &script) |
| Check whether a scriptPubKey is known to be segwit. More...
|
|
bool | SignTransaction (CMutableTransaction &mtx, const SigningProvider *provider, const std::map< COutPoint, Coin > &coins, int sighash, std::map< int, bilingual_str > &input_errors) |
| Sign the CMutableTransaction. More...
|
|
◆ SigPair
◆ DataFromTransaction()
Extract signature data from a transaction input, and insert it.
Definition at line 578 of file sign.cpp.
◆ IsSegWitOutput()
Check whether a scriptPubKey is known to be segwit.
Definition at line 736 of file sign.cpp.
◆ ProduceSignature()
Produce a script signature using a generic signature creator.
Definition at line 470 of file sign.cpp.
◆ 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 665 of file sign.cpp.
◆ SignSignature() [2/2]
◆ SignTransaction()
◆ UpdateInput()
◆ DUMMY_CHECKER
A signature checker that accepts all signatures.
Definition at line 699 of file sign.cpp.
◆ DUMMY_MAXIMUM_SIGNATURE_CREATOR
A signature creator that just produces 72-byte empty signatures.
Definition at line 734 of file sign.cpp.
◆ DUMMY_SIGNATURE_CREATOR
A signature creator that just produces 71-byte empty signatures.
Definition at line 733 of file sign.cpp.