Fabcoin Core
0.16.2
P2P Digital Currency
|
#include "script/interpreter.h"
#include "uint256.h"
#include <boost/variant.hpp>
#include <stdint.h>
Go to the source code of this file.
Classes | |
class | CScriptID |
A reference to a CScript: the Hash160 of its serialization (see script.h) More... | |
class | CNoDestination |
Typedefs | |
typedef boost::variant< CNoDestination, CKeyID, CScriptID > | CTxDestination |
A txout script template with a specific destination. More... | |
Enumerations | |
enum | txnouttype { TX_NONSTANDARD, TX_PUBKEY, TX_PUBKEYHASH, TX_SCRIPTHASH, TX_MULTISIG, TX_NULL_DATA, TX_WITNESS_V0_SCRIPTHASH, TX_WITNESS_V0_KEYHASH, TX_CREATE, TX_CALL } |
Functions | |
const char * | GetTxnOutputType (txnouttype t) |
bool | Solver (const CScript &scriptPubKey, txnouttype &typeRet, std::vector< std::vector< unsigned char > > &vSolutionsRet, bool contractConsensus=false) |
Return public keys or hashes from scriptPubKey, for 'standard' transaction types. More... | |
bool | ExtractDestination (const CScript &scriptPubKey, CTxDestination &addressRet, txnouttype *typeRet=nullptr) |
bool | ExtractDestinations (const CScript &scriptPubKey, txnouttype &typeRet, std::vector< CTxDestination > &addressRet, int &nRequiredRet) |
CScript | GetScriptForDestination (const CTxDestination &dest) |
CScript | GetScriptForRawPubKey (const CPubKey &pubkey) |
CScript | GetScriptForMultisig (int nRequired, const std::vector< CPubKey > &keys) |
CScript | GetScriptForWitness (const CScript &redeemscript) |
Variables | |
bool | fAcceptDatacarrier |
unsigned | nMaxDatacarrierBytes |
typedef boost::variant<CNoDestination, CKeyID, CScriptID> CTxDestination |
A txout script template with a specific destination.
It is either:
Definition at line 79 of file standard.h.
enum txnouttype |
Enumerator | |
---|---|
TX_NONSTANDARD | |
TX_PUBKEY | |
TX_PUBKEYHASH | |
TX_SCRIPTHASH | |
TX_MULTISIG | |
TX_NULL_DATA | |
TX_WITNESS_V0_SCRIPTHASH | |
TX_WITNESS_V0_KEYHASH | |
TX_CREATE | |
TX_CALL |
Definition at line 51 of file standard.h.
bool ExtractDestination | ( | const CScript & | scriptPubKey, |
CTxDestination & | addressRet, | ||
txnouttype * | typeRet = nullptr |
||
) |
Definition at line 268 of file standard.cpp.
bool ExtractDestinations | ( | const CScript & | scriptPubKey, |
txnouttype & | typeRet, | ||
std::vector< CTxDestination > & | addressRet, | ||
int & | nRequiredRet | ||
) |
Definition at line 302 of file standard.cpp.
CScript GetScriptForDestination | ( | const CTxDestination & | dest | ) |
Definition at line 383 of file standard.cpp.
Definition at line 378 of file standard.cpp.
Definition at line 394 of file standard.cpp.
const char* GetTxnOutputType | ( | txnouttype | t | ) |
bool Solver | ( | const CScript & | scriptPubKey, |
txnouttype & | typeRet, | ||
std::vector< std::vector< unsigned char > > & | vSolutionsRet, | ||
bool | contractConsensus = false |
||
) |
Return public keys or hashes from scriptPubKey, for 'standard' transaction types.
Definition at line 46 of file standard.cpp.
bool fAcceptDatacarrier |
Definition at line 20 of file standard.cpp.
unsigned nMaxDatacarrierBytes |
Definition at line 21 of file standard.cpp.