]> Git Repo - VerusCoin.git/blame - src/script/sigcache.h
Merge pull request #5470
[VerusCoin.git] / src / script / sigcache.h
CommitLineData
5c1e798a 1// Copyright (c) 2009-2010 Satoshi Nakamoto
5eed8c21
PK
2// Copyright (c) 2009-2014 The Bitcoin developers
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
15class CachingSignatureChecker : public SignatureChecker
16{
e790c370
PW
17private:
18 bool store;
19
5c1e798a 20public:
e790c370 21 CachingSignatureChecker(const CTransaction& txToIn, unsigned int nInIn, bool storeIn=true) : SignatureChecker(txToIn, nInIn), 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.037901 seconds and 4 git commands to generate.