6 #ifndef BITCOIN_SCRIPT_BITCOINCONSENSUS_H 7 #define BITCOIN_SCRIPT_BITCOINCONSENSUS_H 11 #if defined(BUILD_BITCOIN_INTERNAL) && defined(HAVE_CONFIG_H) 14 #if defined(HAVE_DLLEXPORT_ATTRIBUTE) 15 #define EXPORT_SYMBOL __declspec(dllexport) 19 #elif defined(HAVE_DEFAULT_VISIBILITY_ATTRIBUTE) 20 #define EXPORT_SYMBOL __attribute__ ((visibility ("default"))) 22 #elif defined(MSC_VER) && !defined(STATIC_LIBBITCOINCONSENSUS) 23 #define EXPORT_SYMBOL __declspec(dllimport) 34 #define BITCOINCONSENSUS_API_VER 2 76 const unsigned char *txTo ,
unsigned int txToLen,
80 const unsigned char *txTo ,
unsigned int txToLen,
84 const unsigned char *txTo ,
unsigned int txToLen,
85 const UTXO *spentOutputs,
unsigned int spentOutputsLen,
96 #endif // BITCOIN_SCRIPT_BITCOINCONSENSUS_H EXPORT_SYMBOL int bitcoinconsensus_verify_script_with_spent_outputs(const unsigned char *scriptPubKey, unsigned int scriptPubKeyLen, int64_t amount, const unsigned char *txTo, unsigned int txToLen, const UTXO *spentOutputs, unsigned int spentOutputsLen, unsigned int nIn, unsigned int flags, bitcoinconsensus_error *err)
EXPORT_SYMBOL int bitcoinconsensus_verify_script_with_amount(const unsigned char *scriptPubKey, unsigned int scriptPubKeyLen, int64_t amount, const unsigned char *txTo, unsigned int txToLen, unsigned int nIn, unsigned int flags, bitcoinconsensus_error *err)
unsigned int scriptPubKeySize
EXPORT_SYMBOL int bitcoinconsensus_verify_script(const unsigned char *scriptPubKey, unsigned int scriptPubKeyLen, const unsigned char *txTo, unsigned int txToLen, unsigned int nIn, unsigned int flags, bitcoinconsensus_error *err)
Returns 1 if the input nIn of the serialized transaction pointed to by txTo correctly spends the scri...
enum bitcoinconsensus_error_t bitcoinconsensus_error
const unsigned char * scriptPubKey
EXPORT_SYMBOL unsigned int bitcoinconsensus_version()