]> Git Repo - VerusCoin.git/blame - src/script/sigcache.h
Merge branch 'dev' into jl777
[VerusCoin.git] / src / script / sigcache.h
CommitLineData
5c1e798a 1// Copyright (c) 2009-2010 Satoshi Nakamoto
f914f1a7 2// Copyright (c) 2009-2014 The Bitcoin Core developers
5eed8c21 3// Distributed under the MIT software license, see the accompanying
5c1e798a
PW
4// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
84738627
PJ
6#ifndef BITCOIN_SCRIPT_SIGCACHE_H
7#define BITCOIN_SCRIPT_SIGCACHE_H
5c1e798a
PW
8
9#include "script/interpreter.h"
10
11#include <vector>
12
13class CPubKey;
14
858809a3 15class CachingTransactionSignatureChecker : public TransactionSignatureChecker
5c1e798a 16{
e790c370
PW
17private:
18 bool store;
19
5c1e798a 20public:
6514771a 21 CachingTransactionSignatureChecker(const CTransaction* txToIn, unsigned int nInIn, const CAmount& amount, bool storeIn, PrecomputedTransactionData& txdataIn) : TransactionSignatureChecker(txToIn, nInIn, amount, txdataIn), store(storeIn) {}
5c1e798a 22
e790c370 23 bool VerifySignature(const std::vector<unsigned char>& vchSig, const CPubKey& vchPubKey, const uint256& sighash) const;
5c1e798a
PW
24};
25
84738627 26#endif // BITCOIN_SCRIPT_SIGCACHE_H
This page took 0.079163 seconds and 4 git commands to generate.