Changeset View
Changeset View
Standalone View
Standalone View
src/script/interpreter.h
Show All 25 Lines | uint256 SignatureHash(const CScript &scriptCode, const CTransaction &txTo, | ||||
const Amount amount, | const Amount amount, | ||||
const PrecomputedTransactionData *cache = nullptr, | const PrecomputedTransactionData *cache = nullptr, | ||||
uint32_t flags = SCRIPT_ENABLE_SIGHASH_FORKID); | uint32_t flags = SCRIPT_ENABLE_SIGHASH_FORKID); | ||||
class BaseSignatureChecker { | class BaseSignatureChecker { | ||||
public: | public: | ||||
virtual bool VerifySignature(const std::vector<uint8_t> &vchSig, | virtual bool VerifySignature(const std::vector<uint8_t> &vchSig, | ||||
const CPubKey &vchPubKey, | const CPubKey &vchPubKey, | ||||
const uint256 &sighash, uint32_t flags) const; | const uint256 &sighash) const; | ||||
virtual bool CheckSig(const std::vector<uint8_t> &vchSigIn, | virtual bool CheckSig(const std::vector<uint8_t> &vchSigIn, | ||||
const std::vector<uint8_t> &vchPubKey, | const std::vector<uint8_t> &vchPubKey, | ||||
const CScript &scriptCode, uint32_t flags) const { | const CScript &scriptCode, uint32_t flags) const { | ||||
return false; | return false; | ||||
} | } | ||||
virtual bool CheckLockTime(const CScriptNum &nLockTime) const { | virtual bool CheckLockTime(const CScriptNum &nLockTime) const { | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |