![]() |
Fabcoin Core
0.16.2
P2P Digital Currency
|
#include "interpreter.h"#include "primitives/transaction.h"#include "crypto/ripemd160.h"#include "crypto/sha1.h"#include "crypto/sha256.h"#include "pubkey.h"#include "script/script.h"#include "uint256.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. More... | |
| #define | altstacktop(i) (altstack.at(altstack.size()+(i))) |
Typedefs | |
| typedef std::vector< unsigned char > | valtype |
Functions | |
| bool | CastToBool (const valtype &vch) |
| bool | IsCompressedOrUncompressedPubKey (const valtype &vchPubKey) |
| bool | IsLowDERSignature (const valtype &vchSig, ScriptError *serror, bool haveHashType) |
| bool | IsDERSignature (const valtype &vchSig, ScriptError *serror, bool haveHashType) |
| bool | CheckSignatureEncoding (const std::vector< unsigned char > &vchSig, unsigned int flags, ScriptError *serror) |
| bool | EvalScript (std::vector< std::vector< unsigned char > > &stack, const CScript &script, unsigned int flags, const BaseSignatureChecker &checker, SigVersion sigversion, ScriptError *serror) |
| uint256 | SignatureHash (const CScript &scriptCode, const CTransaction &txTo, unsigned int nIn, int nHashType, const CAmount &amount, SigVersion sigversion, const PrecomputedTransactionData *cache) |
| bool | VerifyScript (const CScript &scriptSig, const CScript &scriptPubKey, const CScriptWitness *witness, unsigned int flags, const BaseSignatureChecker &checker, ScriptError *serror) |
| size_t | CountWitnessSigOps (const CScript &scriptSig, const CScript &scriptPubKey, const CScriptWitness *witness, unsigned int flags) |
| #define altstacktop | ( | i | ) | (altstack.at(altstack.size()+(i))) |
Definition at line 57 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 56 of file interpreter.cpp.
| typedef std::vector<unsigned char> valtype |
Definition at line 16 of file interpreter.cpp.
| bool CastToBool | ( | const valtype & | vch | ) |
| bool CheckSignatureEncoding | ( | const std::vector< unsigned char > & | vchSig, |
| unsigned int | flags, | ||
| ScriptError * | serror | ||
| ) |
Definition at line 202 of file interpreter.cpp.
| size_t CountWitnessSigOps | ( | const CScript & | scriptSig, |
| const CScript & | scriptPubKey, | ||
| const CScriptWitness * | witness, | ||
| unsigned int | flags | ||
| ) |
Definition at line 1564 of file interpreter.cpp.
| bool EvalScript | ( | std::vector< std::vector< unsigned char > > & | stack, |
| const CScript & | script, | ||
| unsigned int | flags, | ||
| const BaseSignatureChecker & | checker, | ||
| SigVersion | sigversion, | ||
| ScriptError * | serror | ||
| ) |
Definition at line 253 of file interpreter.cpp.
| bool IsCompressedOrUncompressedPubKey | ( | const valtype & | vchPubKey | ) |
| bool IsDERSignature | ( | const valtype & | vchSig, |
| ScriptError * | serror, | ||
| bool | haveHashType | ||
| ) |
| bool IsLowDERSignature | ( | const valtype & | vchSig, |
| ScriptError * | serror, | ||
| bool | haveHashType | ||
| ) |
Definition at line 174 of file interpreter.cpp.
| uint256 SignatureHash | ( | const CScript & | scriptCode, |
| const CTransaction & | txTo, | ||
| unsigned int | nIn, | ||
| int | nHashType, | ||
| const CAmount & | amount, | ||
| SigVersion | sigversion, | ||
| const PrecomputedTransactionData * | cache | ||
| ) |
Definition at line 1198 of file interpreter.cpp.
| bool VerifyScript | ( | const CScript & | scriptSig, |
| const CScript & | scriptPubKey, | ||
| const CScriptWitness * | witness, | ||
| unsigned int | flags, | ||
| const BaseSignatureChecker & | checker, | ||
| ScriptError * | serror | ||
| ) |
Definition at line 1429 of file interpreter.cpp.
1.8.11