Line data Source code
1 : // Copyright (c) 2009-2010 Satoshi Nakamoto
2 : // Copyright (c) 2009-2014 The Bitcoin Core developers
3 : // Distributed under the MIT software license, see the accompanying
4 : // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 :
6 : #ifndef BITCOIN_SCRIPT_SIGCACHE_H
7 : #define BITCOIN_SCRIPT_SIGCACHE_H
8 :
9 : #include "script/interpreter.h"
10 :
11 : #include <vector>
12 :
13 : class CPubKey;
14 :
15 11832 : class CachingTransactionSignatureChecker : public TransactionSignatureChecker
16 : {
17 : private:
18 : bool store;
19 :
20 : public:
21 11832 : CachingTransactionSignatureChecker(const CTransaction* txToIn, unsigned int nInIn, bool storeIn=true) : TransactionSignatureChecker(txToIn, nInIn), store(storeIn) {}
22 :
23 : bool VerifySignature(const std::vector<unsigned char>& vchSig, const CPubKey& vchPubKey, const uint256& sighash) const;
24 : };
25 :
26 : #endif // BITCOIN_SCRIPT_SIGCACHE_H
|