mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 18:20:58 +02:00
Verify PSBT inputs rather than check for fields being empty
This commit is contained in:
@ -1218,9 +1218,12 @@ std::string PSBTRoleName(PSBTRole role);
|
||||
/** Compute a PrecomputedTransactionData object from a psbt. */
|
||||
PrecomputedTransactionData PrecomputePSBTData(const PartiallySignedTransaction& psbt);
|
||||
|
||||
/** Checks whether a PSBTInput is already signed. */
|
||||
/** Checks whether a PSBTInput is already signed by checking for non-null finalized fields. */
|
||||
bool PSBTInputSigned(const PSBTInput& input);
|
||||
|
||||
/** Checks whether a PSBTInput is already signed by doing script verification using final fields. */
|
||||
bool PSBTInputSignedAndVerified(const PartiallySignedTransaction psbt, unsigned int input_index, const PrecomputedTransactionData* txdata);
|
||||
|
||||
/** Signs a PSBTInput, verifying that all provided data matches what is being signed.
|
||||
*
|
||||
* txdata should be the output of PrecomputePSBTData (which can be shared across
|
||||
|
Reference in New Issue
Block a user