diff options
| author | Gavin Andresen <[email protected]> | 2012-06-21 17:05:42 -0400 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2012-07-05 12:42:25 -0400 |
| commit | 34420d655d8c1cf15e53803ca85e0ac2a2a62fe9 (patch) | |
| tree | df152867d93162ab6a5a6a52097bbeecc279c705 /src/script.h | |
| parent | Rework gettransaction / getblock RPC calls (diff) | |
| download | discoin-34420d655d8c1cf15e53803ca85e0ac2a2a62fe9.tar.xz discoin-34420d655d8c1cf15e53803ca85e0ac2a2a62fe9.zip | |
Refactor: SignSignature/VerifyScript
Minor refactor to support signrawtx signing/verifying transactions
when it might only have the previous transaction's txid and
txOut.
Diffstat (limited to 'src/script.h')
| -rw-r--r-- | src/script.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script.h b/src/script.h index e2b83bd6e..38f346936 100644 --- a/src/script.h +++ b/src/script.h @@ -591,7 +591,10 @@ bool IsMine(const CKeyStore& keystore, const CScript& scriptPubKey); bool IsMine(const CKeyStore& keystore, const CTxDestination &dest); 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); bool SignSignature(const CKeyStore& keystore, const CTransaction& txFrom, CTransaction& txTo, unsigned int nIn, int nHashType=SIGHASH_ALL); +bool VerifyScript(const CScript& scriptSig, const CScript& scriptPubKey, const CTransaction& txTo, unsigned int nIn, + bool fValidatePayToScriptHash, int nHashType); bool VerifySignature(const CTransaction& txFrom, const CTransaction& txTo, unsigned int nIn, bool fValidatePayToScriptHash, int nHashType); #endif |