Raven Core  3.0.0
P2P Digital Currency
Functions
ravenconsensus.cpp File Reference
#include "ravenconsensus.h"
#include "primitives/transaction.h"
#include "pubkey.h"
#include "script/interpreter.h"
#include "version.h"
Include dependency graph for ravenconsensus.cpp:

Go to the source code of this file.

Functions

int ravenconsensus_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, ravenconsensus_error *err)
 
int ravenconsensus_verify_script (const unsigned char *scriptPubKey, unsigned int scriptPubKeyLen, const unsigned char *txTo, unsigned int txToLen, unsigned int nIn, unsigned int flags, ravenconsensus_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 ravenconsensus_version ()
 

Function Documentation

◆ ravenconsensus_verify_script()

int ravenconsensus_verify_script ( const unsigned char *  scriptPubKey,
unsigned int  scriptPubKeyLen,
const unsigned char *  txTo,
unsigned int  txToLen,
unsigned int  nIn,
unsigned int  flags,
ravenconsensus_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 114 of file ravenconsensus.cpp.

◆ ravenconsensus_verify_script_with_amount()

int ravenconsensus_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,
ravenconsensus_error err 
)

Definition at line 105 of file ravenconsensus.cpp.

◆ ravenconsensus_version()

unsigned int ravenconsensus_version ( )

Definition at line 126 of file ravenconsensus.cpp.