PRCYCoin  2.0.0.7rc1
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
}
 

Functions

const char * GetTxnOutputType (txnouttype t)
 
bool Solver (const CScript &scriptPubKey, txnouttype &typeRet, std::vector< std::vector< unsigned char > > &vSolutionsRet)
 Return public keys or hashes from scriptPubKey, for 'standard' transaction types. More...
 
int ScriptSigArgsExpected (txnouttype t, const std::vector< std::vector< unsigned char > > &vSolutions)
 
bool IsStandard (const CScript &scriptPubKey, txnouttype &whichType)
 
bool ExtractPubKey (const CScript &scriptPubKey, CPubKey &out)
 
bool ExtractDestination (const CScript &scriptPubKey, CTxDestination &addressRet)
 
bool ExtractDestinations (const CScript &scriptPubKey, txnouttype &typeRet, std::vector< CTxDestination > &addressRet, int &nRequiredRet)
 
CScript GetScriptForDestination (const CPubKey &dest)
 
CScript GetScriptForDestination (const CTxDestination &dest)
 
CScript GetScriptForMultisig (int nRequired, const std::vector< CPubKey > &keys)
 

Variables

unsigned nMaxDatacarrierBytes
 

Typedef Documentation

◆ CTxDestination

typedef boost::variant<CNoDestination, CKeyID, CScriptID> CTxDestination

A txout script template with a specific destination.

It is either:

Definition at line 81 of file standard.h.

Enumeration Type Documentation

◆ txnouttype

enum txnouttype
Enumerator
TX_NONSTANDARD 
TX_PUBKEY 
TX_PUBKEYHASH 
TX_SCRIPTHASH 
TX_MULTISIG 
TX_NULL_DATA 

Definition at line 57 of file standard.h.

Function Documentation

◆ ExtractDestination()

bool ExtractDestination ( const CScript scriptPubKey,
CTxDestination addressRet 
)

Definition at line 199 of file standard.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExtractDestinations()

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

Definition at line 223 of file standard.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExtractPubKey()

bool ExtractPubKey ( const CScript scriptPubKey,
CPubKey out 
)

Definition at line 185 of file standard.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetScriptForDestination() [1/2]

CScript GetScriptForDestination ( const CPubKey dest)

Definition at line 292 of file standard.cpp.

Here is the call graph for this function:

◆ GetScriptForDestination() [2/2]

CScript GetScriptForDestination ( const CTxDestination dest)

Definition at line 285 of file standard.cpp.

Here is the caller graph for this function:

◆ GetScriptForMultisig()

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

Definition at line 298 of file standard.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetTxnOutputType()

const char* GetTxnOutputType ( txnouttype  t)

Definition at line 20 of file standard.cpp.

Here is the caller graph for this function:

◆ IsStandard()

bool IsStandard ( const CScript scriptPubKey,
txnouttype whichType 
)

Definition at line 165 of file standard.cpp.

Here is the call graph for this function:

◆ ScriptSigArgsExpected()

int ScriptSigArgsExpected ( txnouttype  t,
const std::vector< std::vector< unsigned char > > &  vSolutions 
)

◆ Solver()

bool Solver ( const CScript scriptPubKey,
txnouttype typeRet,
std::vector< std::vector< unsigned char > > &  vSolutionsRet 
)

Return public keys or hashes from scriptPubKey, for 'standard' transaction types.

Definition at line 41 of file standard.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ nMaxDatacarrierBytes

unsigned nMaxDatacarrierBytes

Definition at line 16 of file standard.cpp.