19 TxInputStream(
int nTypeIn,
int nVersionIn,
const unsigned char *txTo,
size_t txToLen) :
21 m_version(nVersionIn),
26 TxInputStream& read(
char* pch,
size_t nSize)
28 if (nSize > m_remaining)
29 throw std::ios_base::failure(std::string(__func__) +
": end of data");
32 throw std::ios_base::failure(std::string(__func__) +
": bad destination buffer");
35 throw std::ios_base::failure(std::string(__func__) +
": bad source buffer");
37 memcpy(pch, m_data, nSize);
44 TxInputStream& operator>>(T& obj)
53 const unsigned char* m_data;
64 struct ECCryptoClosure
69 ECCryptoClosure instance_of_eccryptoclosure;
73 const unsigned char *txTo ,
unsigned int txToLen,
80 if (nIn >= tx.vin.size())
89 }
catch (
const std::exception&) {
int dashconsensus_verify_script(const unsigned char *scriptPubKey, unsigned int scriptPubKeyLen, const unsigned char *txTo, unsigned int txToLen, unsigned int nIn, unsigned int flags, dashconsensus_error *err)
void Unserialize(Stream &s, char &a, int, int=0)
#define BITCOINCONSENSUS_API_VER
bool VerifyScript(const CScript &scriptSig, const CScript &scriptPubKey, unsigned int flags, const BaseSignatureChecker &checker, ScriptError *serror)
void * memcpy(void *a, const void *b, size_t c)
static const int PROTOCOL_VERSION
unsigned int dashconsensus_version()
enum dashconsensus_error_t dashconsensus_error