6 #ifndef FABCOIN_SCRIPT_INTERPRETER_H 7 #define FABCOIN_SCRIPT_INTERPRETER_H 21 typedef std::vector<unsigned char>
valtype;
135 virtual bool CheckSig(
const std::vector<unsigned char>& scriptSig,
const std::vector<unsigned char>& vchPubKey,
const CScript& scriptCode,
SigVersion sigversion)
const 167 bool CheckSig(
const std::vector<unsigned char>& scriptSig,
const std::vector<unsigned char>& vchPubKey,
const CScript& scriptCode,
SigVersion sigversion)
const override;
168 bool CheckLockTime(
const CScriptNum& nLockTime)
const override;
169 bool CheckSequence(
const CScriptNum& nSequence)
const override;
189 #endif // FABCOIN_SCRIPT_INTERPRETER_H MutableTransactionSignatureChecker(const CMutableTransaction *txToIn, unsigned int nInIn, const CAmount &amountIn)
bool IsLowDERSignature(const valtype &vchSig, ScriptError *serror=NULL, bool haveHashType=true)
virtual ~BaseSignatureChecker()
bool error(const char *fmt, const Args &...args)
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 lius (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)
bool IsCompressedOrUncompressedPubKey(const valtype &vchPubKey)
PrecomputedTransactionData(const CTransaction &tx)
An encapsulated public key.
virtual bool CheckLockTime(const CScriptNum &nLockTime) const
TransactionSignatureChecker(const CTransaction *txToIn, unsigned int nInIn, const CAmount &amountIn)
std::vector< unsigned char > valtype
bool IsDERSignature(const valtype &vchSig, ScriptError *serror=NULL, bool haveHashType=true)
virtual bool CheckSequence(const CScriptNum &nSequence) const
size_t CountWitnessSigOps(const CScript &scriptSig, const CScript &scriptPubKey, const CScriptWitness *witness, unsigned int flags)
Serialized script, used inside transaction inputs and outputs.
bool VerifySignature(const Coin &coin, const uint256 txFromHash, const CTransaction &txTo, unsigned int nIn, unsigned int flags)
A mutable version of CTransaction.
std::vector< unsigned char > valtype
The basic transaction that is broadcasted on the network and contained in blocks. ...
const CTransaction * txTo
virtual bool CheckSig(const std::vector< unsigned char > &scriptSig, const std::vector< unsigned char > &vchPubKey, const CScript &scriptCode, SigVersion sigversion) const