diff options
author | Glenn Willen <gwillen@nerdnet.org> | 2018-10-26 15:28:48 -0700 |
---|---|---|
committer | Glenn Willen <gwillen@nerdnet.org> | 2018-11-01 12:11:24 -0700 |
commit | 53e6fffb8f5b10f94708d33d667a67cb91c2d09d (patch) | |
tree | 3d4d13a3f3110c0defedc347ff7b280cb7216289 /src/script/sign.h | |
parent | 65166d4cf828909dc4bc49dd68a58103d015f1fd (diff) |
Add bool PSBTInputSigned
Refactor out a "PSBTInputSigned" function to check if a PSBT is signed,
for use in subsequent commits.
Also improve a related comment.
Diffstat (limited to 'src/script/sign.h')
-rw-r--r-- | src/script/sign.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/sign.h b/src/script/sign.h index 381e2eb120..35f7630f41 100644 --- a/src/script/sign.h +++ b/src/script/sign.h @@ -730,6 +730,9 @@ bool ProduceSignature(const SigningProvider& provider, const BaseSignatureCreato bool SignSignature(const SigningProvider &provider, const CScript& fromPubKey, CMutableTransaction& txTo, unsigned int nIn, const CAmount& amount, int nHashType); bool SignSignature(const SigningProvider &provider, const CTransaction& txFrom, CMutableTransaction& txTo, unsigned int nIn, int nHashType); +/** Checks whether a PSBTInput is already signed. */ +bool PSBTInputSigned(PSBTInput& input); + /** Signs a PSBTInput, verifying that all provided data matches what is being signed. */ bool SignPSBTInput(const SigningProvider& provider, const CMutableTransaction& tx, PSBTInput& input, int index, int sighash = SIGHASH_ALL); |