7 #ifndef RAVEN_SCRIPT_INTERPRETER_H 8 #define RAVEN_SCRIPT_INTERPRETER_H 136 virtual bool CheckSig(
const std::vector<unsigned char> &scriptSig,
const std::vector<unsigned char> &vchPubKey,
const CScript &scriptCode,
SigVersion sigversion)
const 163 virtual bool VerifySignature(
const std::vector<unsigned char> &vchSig,
const CPubKey &vchPubKey,
const uint256 &sighash)
const;
170 bool CheckSig(
const std::vector<unsigned char> &scriptSig,
const std::vector<unsigned char> &vchPubKey,
const CScript &scriptCode,
SigVersion sigversion)
const override;
172 bool CheckLockTime(
const CScriptNum &nLockTime)
const override;
174 bool CheckSequence(
const CScriptNum &nSequence)
const override;
192 #endif // RAVEN_SCRIPT_INTERPRETER_H MutableTransactionSignatureChecker(const CMutableTransaction *txToIn, unsigned int nInIn, const CAmount &amountIn)
virtual bool CheckLockTime(const CScriptNum &nLockTime) const
virtual ~BaseSignatureChecker()
const PrecomputedTransactionData * txdata
bool VerifyScript(const CScript &scriptSig, const CScript &scriptPubKey, const CScriptWitness *witness, unsigned int flags, const BaseSignatureChecker &checker, ScriptError *serror=nullptr)
enum ScriptError_t ScriptError
bool CheckSignatureEncoding(const std::vector< unsigned char > &vchSig, unsigned int flags, ScriptError *serror)
TransactionSignatureChecker(const CTransaction *txToIn, unsigned int nInIn, const CAmount &amountIn, const PrecomputedTransactionData &txdataIn)
uint256 SignatureHash(const CScript &scriptCode, const CTransaction &txTo, unsigned int nIn, int nHashType, const CAmount &amount, SigVersion sigversion, const PrecomputedTransactionData *cache=nullptr)
int64_t CAmount
Amount in corbies (Can be negative)
bool EvalScript(std::vector< std::vector< unsigned char > > &stack, const CScript &script, unsigned int flags, const BaseSignatureChecker &checker, SigVersion sigversion, ScriptError *error=nullptr)
PrecomputedTransactionData(const CTransaction &tx)
An encapsulated public key.
TransactionSignatureChecker(const CTransaction *txToIn, unsigned int nInIn, const CAmount &amountIn)
size_t CountWitnessSigOps(const CScript &scriptSig, const CScript &scriptPubKey, const CScriptWitness *witness, unsigned int flags)
Serialized script, used inside transaction inputs and outputs.
virtual bool CheckSig(const std::vector< unsigned char > &scriptSig, const std::vector< unsigned char > &vchPubKey, const CScript &scriptCode, SigVersion sigversion) const
virtual bool CheckSequence(const CScriptNum &nSequence) const
bool error(const char *fmt, const Args &... args)
A mutable version of CTransaction.
The basic transaction that is broadcasted on the network and contained in blocks. ...
const CTransaction * txTo