Changeset View
Changeset View
Standalone View
Standalone View
src/script/sign.h
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_SCRIPT_SIGN_H | #ifndef BITCOIN_SCRIPT_SIGN_H | ||||
#define BITCOIN_SCRIPT_SIGN_H | #define BITCOIN_SCRIPT_SIGN_H | ||||
#include "script/interpreter.h" | #include "script/interpreter.h" | ||||
class CKeyID; | class CKeyID; | ||||
class CKeyStore; | class CKeyStore; | ||||
class CMutableTransaction; | |||||
class CScript; | class CScript; | ||||
class CTransaction; | class CTransaction; | ||||
struct CMutableTransaction; | |||||
/** Virtual base class for signature creators. */ | /** Virtual base class for signature creators. */ | ||||
class BaseSignatureCreator { | class BaseSignatureCreator { | ||||
protected: | protected: | ||||
const CKeyStore *keystore; | const CKeyStore *keystore; | ||||
public: | public: | ||||
BaseSignatureCreator(const CKeyStore *keystoreIn) : keystore(keystoreIn) {} | BaseSignatureCreator(const CKeyStore *keystoreIn) : keystore(keystoreIn) {} | ||||
const CKeyStore &KeyStore() const { return *keystore; }; | const CKeyStore &KeyStore() const { return *keystore; }; | ||||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |