Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Typedefs | Enumerations | Functions | Variables
standard.h File Reference
#include "script/interpreter.h"
#include "uint256.h"
#include <boost/variant.hpp>
#include <stdint.h>
Include dependency graph for standard.h:
This graph shows which files directly or indirectly include this file:

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, CScriptIDCTxDestination
 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 Documentation

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.

Enumeration Type Documentation

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.

Function Documentation

bool ExtractDestination ( const CScript scriptPubKey,
CTxDestination addressRet,
txnouttype typeRet = nullptr 
)

Definition at line 268 of file standard.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool ExtractDestinations ( const CScript scriptPubKey,
txnouttype typeRet,
std::vector< CTxDestination > &  addressRet,
int &  nRequiredRet 
)

Definition at line 302 of file standard.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

CScript GetScriptForDestination ( const CTxDestination dest)

Definition at line 370 of file standard.cpp.

Here is the caller graph for this function:

CScript GetScriptForMultisig ( int  nRequired,
const std::vector< CPubKey > &  keys 
)

Definition at line 383 of file standard.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

CScript GetScriptForRawPubKey ( const CPubKey pubkey)

Definition at line 378 of file standard.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

CScript GetScriptForWitness ( const CScript redeemscript)

Definition at line 394 of file standard.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const char* GetTxnOutputType ( txnouttype  t)

Definition at line 25 of file standard.cpp.

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

bool fAcceptDatacarrier

Definition at line 20 of file standard.cpp.

unsigned nMaxDatacarrierBytes

Definition at line 21 of file standard.cpp.