diff options
| author | Pieter Wuille <[email protected]> | 2017-11-30 16:48:31 -0800 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2018-01-03 05:32:00 -0800 |
| commit | 0c8ea6380c9f402ed9777fd015b117ba13125a35 (patch) | |
| tree | 23dc52dd8456f356328dca4de4dc030d19428f43 /src/script/sign.h | |
| parent | Merge #11854: Split up key and script metadata for better type safety (diff) | |
| download | discoin-0c8ea6380c9f402ed9777fd015b117ba13125a35.tar.xz discoin-0c8ea6380c9f402ed9777fd015b117ba13125a35.zip | |
Abstract out IsSolvable from Witnessifier
Diffstat (limited to 'src/script/sign.h')
| -rw-r--r-- | src/script/sign.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/script/sign.h b/src/script/sign.h index 400c0c086..ef6aa7f31 100644 --- a/src/script/sign.h +++ b/src/script/sign.h @@ -81,4 +81,10 @@ SignatureData CombineSignatures(const CScript& scriptPubKey, const BaseSignature SignatureData DataFromTransaction(const CMutableTransaction& tx, unsigned int nIn); void UpdateTransaction(CMutableTransaction& tx, unsigned int nIn, const SignatureData& data); +/* Check whether we know how to sign for an output like this, assuming we + * have all private keys. While this function does not need private keys, the passed + * keystore is used to look up public keys and redeemscripts by hash. + * Solvability is unrelated to whether we consider this output to be ours. */ +bool IsSolvable(const CKeyStore& store, const CScript& script); + #endif // BITCOIN_SCRIPT_SIGN_H |