Bitcoin ABC 0.26.3
P2P Digital Currency
|
#include <script/interpreter.h>
#include <crypto/ripemd160.h>
#include <crypto/sha1.h>
#include <crypto/sha256.h>
#include <pubkey.h>
#include <script/bitfield.h>
#include <script/script.h>
#include <script/sigencoding.h>
#include <uint256.h>
#include <util/bitmanip.h>
Go to the source code of this file.
Macros | |
#define | stacktop(i) (stack.at(stack.size() + (i))) |
Script is a stack machine (like Forth) that evaluates a predicate returning a bool indicating valid or not. | |
#define | altstacktop(i) (altstack.at(altstack.size() + (i))) |
#define altstacktop | ( | i | ) | (altstack.at(altstack.size() + (i))) |
Definition at line 37 of file interpreter.cpp.
#define stacktop | ( | i | ) | (stack.at(stack.size() + (i))) |
Script is a stack machine (like Forth) that evaluates a predicate returning a bool indicating valid or not.
There are no loops.
Definition at line 36 of file interpreter.cpp.
|
static |
Helper for OP_CHECKSIG and OP_CHECKSIGVERIFY.
A return value of false means the script fails entirely. When true is returned, the fSuccess variable indicates whether the signature check itself succeeded.
Definition at line 108 of file interpreter.cpp.
bool EvalScript | ( | std::vector< valtype > & | stack, |
const CScript & | script, | ||
uint32_t | flags, | ||
const BaseSignatureChecker & | checker, | ||
ScriptExecutionMetrics & | metrics, | ||
ScriptError * | serror | ||
) |
Definition at line 1345 of file interpreter.cpp.
|
static |
|
inlinestatic |
uint256 SignatureHash | ( | const CScript & | scriptCode, |
const T & | txTo, | ||
unsigned int | nIn, | ||
SigHashType | sigHashType, | ||
const Amount | amount, | ||
const PrecomputedTransactionData * | cache, | ||
uint32_t | flags | ||
) |
Definition at line 1509 of file interpreter.cpp.
bool VerifyScript | ( | const CScript & | scriptSig, |
const CScript & | scriptPubKey, | ||
uint32_t | flags, | ||
const BaseSignatureChecker & | checker, | ||
ScriptExecutionMetrics & | metricsOut, | ||
ScriptError * | serror = nullptr |
||
) |
Execute an unlocking and locking script together.
Upon success, metrics will hold the accumulated script metrics. (upon failure, the results should not be relied on)
Definition at line 1720 of file interpreter.cpp.