diff options
author | Andrew Chow <achow101-github@achow101.com> | 2020-02-10 19:19:59 -0500 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2020-03-08 12:26:27 -0400 |
commit | 2c52b59d0a44a86d94fee4e437978d822862c542 (patch) | |
tree | a878b9ed1aec863695990b863868417b27c4e955 /src/script/sign.h | |
parent | 5e12a61044b15e4e29ac786135a9ebb72d1bfc61 (diff) | |
download | bitcoin-2c52b59d0a44a86d94fee4e437978d822862c542.tar.xz |
Refactor rawtransaction's SignTransaction into generic SignTransaction function
Diffstat (limited to 'src/script/sign.h')
-rw-r--r-- | src/script/sign.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/script/sign.h b/src/script/sign.h index 033c9ba19e..f03af0713f 100644 --- a/src/script/sign.h +++ b/src/script/sign.h @@ -6,6 +6,7 @@ #ifndef BITCOIN_SCRIPT_SIGN_H #define BITCOIN_SCRIPT_SIGN_H +#include <coins.h> #include <hash.h> #include <pubkey.h> #include <script/interpreter.h> @@ -168,4 +169,7 @@ bool IsSolvable(const SigningProvider& provider, const CScript& script); /** Check whether a scriptPubKey is known to be segwit. */ bool IsSegWitOutput(const SigningProvider& provider, const CScript& script); +/** Sign the CMutableTransaction */ +bool SignTransaction(CMutableTransaction& mtx, const SigningProvider* provider, const std::map<COutPoint, Coin>& coins, int sighash, std::map<int, std::string>& input_errors); + #endif // BITCOIN_SCRIPT_SIGN_H |