aboutsummaryrefslogtreecommitdiff
path: root/src/script.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2013-04-29 19:50:02 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2013-06-22 16:49:30 +0200
commitacc775c5547a94fa5ad12ecb0bdaeefdc285d853 (patch)
treebfca097e15d42febc5b18cd9009b3c054afbf2cf /src/script.h
parent01b45731b75a19ac194b4206b20716bfedcb2357 (diff)
downloadbitcoin-acc775c5547a94fa5ad12ecb0bdaeefdc285d853.tar.xz
Add ExtractAffectedKeys to script
This function finds all keys affected by a particular output script, supporting everything ExtractDestinations supports (pay-to-pubkey, pay-to-pubkeyhash, multisig) and recurses into subscripts (P2SH).
Diffstat (limited to 'src/script.h')
-rw-r--r--src/script.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script.h b/src/script.h
index f963467c94..03afe8b652 100644
--- a/src/script.h
+++ b/src/script.h
@@ -674,6 +674,7 @@ int ScriptSigArgsExpected(txnouttype t, const std::vector<std::vector<unsigned c
bool IsStandard(const CScript& scriptPubKey);
bool IsMine(const CKeyStore& keystore, const CScript& scriptPubKey);
bool IsMine(const CKeyStore& keystore, const CTxDestination &dest);
+void ExtractAffectedKeys(const CKeyStore &keystore, const CScript& scriptPubKey, std::vector<CKeyID> &vKeys);
bool ExtractDestination(const CScript& scriptPubKey, CTxDestination& addressRet);
bool ExtractDestinations(const CScript& scriptPubKey, txnouttype& typeRet, std::vector<CTxDestination>& addressRet, int& nRequiredRet);
bool SignSignature(const CKeyStore& keystore, const CScript& fromPubKey, CTransaction& txTo, unsigned int nIn, int nHashType=SIGHASH_ALL);