Bitcoin ABC 0.30.7
P2P Digital Currency
|
#include <cstdint>
Go to the source code of this file.
Macros | |
#define | EXPORT_SYMBOL |
#define | BITCOINCONSENSUS_API_VER 1 |
Typedefs | |
typedef enum bitcoinconsensus_error_t | bitcoinconsensus_error |
Enumerations | |
enum | bitcoinconsensus_error_t { bitcoinconsensus_ERR_OK = 0 , bitcoinconsensus_ERR_TX_INDEX , bitcoinconsensus_ERR_TX_SIZE_MISMATCH , bitcoinconsensus_ERR_TX_DESERIALIZE , bitcoinconsensus_ERR_AMOUNT_REQUIRED , bitcoinconsensus_ERR_INVALID_FLAGS } |
enum | { bitcoinconsensus_SCRIPT_FLAGS_VERIFY_NONE = 0 , bitcoinconsensus_SCRIPT_FLAGS_VERIFY_P2SH = (1U << 0) , bitcoinconsensus_SCRIPT_FLAGS_VERIFY_DERSIG = (1U << 2) , bitcoinconsensus_SCRIPT_FLAGS_VERIFY_CHECKLOCKTIMEVERIFY = (1U << 9) , bitcoinconsensus_SCRIPT_FLAGS_VERIFY_CHECKSEQUENCEVERIFY = (1U << 10) , bitcoinconsensus_SCRIPT_FLAGS_VERIFY_WITNESS_DEPRECATED = (1U << 11) , bitcoinconsensus_SCRIPT_ENABLE_SIGHASH_FORKID = (1U << 16) , bitcoinconsensus_SCRIPT_FLAGS_VERIFY_ALL } |
Script verification flags. More... | |
Functions | |
EXPORT_SYMBOL int | bitcoinconsensus_verify_script (const uint8_t *scriptPubKey, unsigned int scriptPubKeyLen, const uint8_t *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 scriptPubKey pointed to by scriptPubKey under the additional constraints specified by flags. More... | |
EXPORT_SYMBOL int | bitcoinconsensus_verify_script_with_amount (const uint8_t *scriptPubKey, unsigned int scriptPubKeyLen, int64_t amount, const uint8_t *txTo, unsigned int txToLen, unsigned int nIn, unsigned int flags, bitcoinconsensus_error *err) |
EXPORT_SYMBOL unsigned int | bitcoinconsensus_version () |
#define BITCOINCONSENSUS_API_VER 1 |
Definition at line 36 of file bitcoinconsensus.h.
#define EXPORT_SYMBOL |
Definition at line 29 of file bitcoinconsensus.h.
typedef enum bitcoinconsensus_error_t bitcoinconsensus_error |
anonymous enum |
Script verification flags.
Definition at line 48 of file bitcoinconsensus.h.
Definition at line 38 of file bitcoinconsensus.h.
EXPORT_SYMBOL int bitcoinconsensus_verify_script | ( | const uint8_t * | scriptPubKey, |
unsigned int | scriptPubKeyLen, | ||
const uint8_t * | 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 scriptPubKey pointed to by scriptPubKey under the additional constraints specified by flags.
If not nullptr, err will contain an error/success code for the operation
Definition at line 122 of file bitcoinconsensus.cpp.
EXPORT_SYMBOL int bitcoinconsensus_verify_script_with_amount | ( | const uint8_t * | scriptPubKey, |
unsigned int | scriptPubKeyLen, | ||
int64_t | amount, | ||
const uint8_t * | txTo, | ||
unsigned int | txToLen, | ||
unsigned int | nIn, | ||
unsigned int | flags, | ||
bitcoinconsensus_error * | err | ||
) |
EXPORT_SYMBOL unsigned int bitcoinconsensus_version | ( | ) |
Definition at line 136 of file bitcoinconsensus.cpp.