![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include "script/standard.h"
#include "pubkey.h"
#include "script/script.h"
#include "util.h"
#include "utilstrencodings.h"
#include <boost/foreach.hpp>
Go to the source code of this file.
Typedefs | |
typedef vector< unsigned char > | valtype |
Functions | |
const char * | GetTxnOutputType (txnouttype t) |
bool | Solver (const CScript &scriptPubKey, txnouttype &typeRet, vector< vector< unsigned char > > &vSolutionsRet) |
bool | ExtractDestination (const CScript &scriptPubKey, CTxDestination &addressRet) |
bool | ExtractDestinations (const CScript &scriptPubKey, txnouttype &typeRet, vector< CTxDestination > &addressRet, int &nRequiredRet) |
CScript | GetScriptForDestination (const CTxDestination &dest) |
CScript | GetScriptForRawPubKey (const CPubKey &pubKey) |
CScript | GetScriptForMultisig (int nRequired, const std::vector< CPubKey > &keys) |
Variables | |
bool | fAcceptDatacarrier = DEFAULT_ACCEPT_DATACARRIER |
bytes (+1 for OP_RETURN, +2 for the pushdata opcodes) More... | |
unsigned | nMaxDatacarrierBytes = MAX_OP_RETURN_RELAY |
typedef vector<unsigned char> valtype |
Definition at line 17 of file standard.cpp.
bool ExtractDestination | ( | const CScript & | scriptPubKey, |
CTxDestination & | addressRet | ||
) |
Definition at line 164 of file standard.cpp.
Referenced by CMasternodePayments::CheckPreviousBlockVotes(), CSuperblockManager::CreateSuperblock(), TransactionRecord::decomposeTransaction(), ExtractDestinations(), CMasternodePayments::FillBlockPayee(), CWallet::GetAddressBalances(), CWallet::GetAddressGroupings(), CWalletTx::GetAmounts(), getblocktemplate(), CWallet::GetOutpointAndKeysFromOutput(), getreceivedbyaccount(), CSuperblockManager::GetRequiredPaymentsString(), CMasternodeBlockPayees::GetRequiredPaymentsString(), CWallet::IsChange(), CMasternodeBlockPayees::IsTransactionValid(), CSuperblock::IsValid(), WalletModel::listCoins(), ListReceived(), listunspent(), CMasternodePayments::ProcessBlock(), CMasternodePayments::ProcessMessage(), PaymentServer::processPaymentRequest(), CWallet::SelectCoinsGrouppedByAddresses(), TransactionDesc::toHTML(), CoinControlDialog::updateLabels(), and CoinControlDialog::updateView().
bool ExtractDestinations | ( | const CScript & | scriptPubKey, |
txnouttype & | typeRet, | ||
vector< CTxDestination > & | addressRet, | ||
int & | nRequiredRet | ||
) |
Definition at line 194 of file standard.cpp.
Referenced by CAffectedKeysVisitor::Process(), ScriptPubKeyToJSON(), and ScriptPubKeyToUniv().
CScript GetScriptForDestination | ( | const CTxDestination & | dest | ) |
Definition at line 262 of file standard.cpp.
Referenced by CWallet::AddHDPubKey(), CWallet::AddKeyPubKey(), CGovernancePayment::CGovernancePayment(), CWallet::CreateCollateralTransaction(), createrawtransaction(), CWallet::CreateTransaction(), PaymentServer::fetchPaymentACK(), CMasternodePayments::FillBlockPayee(), GetAccountAddress(), CMasternodeMan::GetMasternodeInfo(), getreceivedbyaddress(), CKeyHolder::GetScriptForDestination(), ImportAddress(), GUIUtil::isDust(), CMasternode::IsInputAssociatedWithPubkey(), IsMine(), CMasternodePayments::IsScheduled(), CPrivateSendClient::MakeCollateralAmounts(), MutateTxAddOutAddr(), WalletModel::prepareTransaction(), CMasternodePayments::ProcessBlock(), sendmany(), SendMoney(), CMasternodeBroadcast::SimpleCheck(), CMasternode::UpdateLastPaid(), and validateaddress().
Definition at line 275 of file standard.cpp.
Referenced by _createmultisig_redeemScript().
Definition at line 270 of file standard.cpp.
Referenced by CWallet::AddHDPubKey(), CWallet::AddKeyPubKey(), and importpubkey().
const char* GetTxnOutputType | ( | txnouttype | t | ) |
Definition at line 24 of file standard.cpp.
Referenced by ScriptPubKeyToJSON(), and ScriptPubKeyToUniv().
bool Solver | ( | const CScript & | scriptPubKey, |
txnouttype & | typeRet, | ||
vector< vector< unsigned char > > & | vSolutionsRet | ||
) |
Return public keys or hashes from scriptPubKey, for 'standard' transaction types.
Definition at line 41 of file standard.cpp.
Referenced by AreInputsStandard(), CombineSignatures(), ExtractDestination(), ExtractDestinations(), IsMine(), CBloomFilter::IsRelevantAndUpdate(), IsStandard(), and SignStep().
bool fAcceptDatacarrier = DEFAULT_ACCEPT_DATACARRIER |
bytes (+1 for OP_RETURN, +2 for the pushdata opcodes)
Definition at line 19 of file standard.cpp.
Referenced by AppInit2(), and IsStandard().
unsigned nMaxDatacarrierBytes = MAX_OP_RETURN_RELAY |
Definition at line 20 of file standard.cpp.
Referenced by AppInit2(), and IsStandard().