PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Typedefs | Functions | Variables
standard.cpp File Reference
#include "script/standard.h"
#include "pubkey.h"
#include "script/script.h"
#include "util.h"
#include "utilstrencodings.h"
Include dependency graph for standard.cpp:

Go to the source code of this file.

Typedefs

typedef std::vector< unsigned char > valtype
 

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 CTxDestination &dest)
 
CScript GetScriptForDestination (const CPubKey &pubkey)
 
CScript GetScriptForMultisig (int nRequired, const std::vector< CPubKey > &keys)
 

Variables

unsigned nMaxDatacarrierBytes = MAX_OP_RETURN_RELAY
 

Typedef Documentation

◆ valtype

typedef std::vector<unsigned char> valtype

Definition at line 14 of file standard.cpp.

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 pubkey)

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 
)

Definition at line 147 of file standard.cpp.

Here is the caller graph for this function:

◆ 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 = MAX_OP_RETURN_RELAY

Definition at line 16 of file standard.cpp.