Bitcoin ABC 0.30.5
P2P Digital Currency
|
#include <script/bitcoinconsensus.h>
#include <primitives/transaction.h>
#include <pubkey.h>
#include <script/interpreter.h>
#include <version.h>
Go to the source code of this file.
Functions | |
static bool | verify_flags (unsigned int flags) |
Check that all specified flags are part of the libconsensus interface. More... | |
static int | verify_script (const uint8_t *scriptPubKey, unsigned int scriptPubKeyLen, Amount amount, const uint8_t *txTo, unsigned int txToLen, unsigned int nIn, unsigned int flags, bitcoinconsensus_error *err) |
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) |
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... | |
unsigned int | bitcoinconsensus_version () |
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.
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 | ||
) |
unsigned int bitcoinconsensus_version | ( | ) |
Definition at line 136 of file bitcoinconsensus.cpp.
|
static |
Check that all specified flags are part of the libconsensus interface.
Definition at line 76 of file bitcoinconsensus.cpp.
|
static |
Definition at line 80 of file bitcoinconsensus.cpp.