Changeset View
Changeset View
Standalone View
Standalone View
src/script/interpreter.h
Show All 21 Lines | |||||
class uint256; | class uint256; | ||||
uint256 SignatureHash(const CScript &scriptCode, const CTransaction &txTo, | uint256 SignatureHash(const CScript &scriptCode, const CTransaction &txTo, | ||||
unsigned int nIn, SigHashType sigHashType, | unsigned int nIn, SigHashType sigHashType, | ||||
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); | ||||
enum class SigVersion { | |||||
Fabien: This should not be necessary | |||||
jasonbcoxAuthorUnsubmitted Done Inline ActionsWill remove. jasonbcox: Will remove. | |||||
BASE = 0, | |||||
WITNESS_V0 = 1, | |||||
}; | |||||
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, uint32_t flags) 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, | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |
This should not be necessary