Changeset View
Changeset View
Standalone View
Standalone View
src/script/standard.h
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | public: | ||||
} | } | ||||
}; | }; | ||||
/** | /** | ||||
* A txout script template with a specific destination. It is either: | * A txout script template with a specific destination. It is either: | ||||
* * CNoDestination: no destination set | * * CNoDestination: no destination set | ||||
* * CKeyID: TX_PUBKEYHASH destination | * * CKeyID: TX_PUBKEYHASH destination | ||||
* * CScriptID: TX_SCRIPTHASH destination | * * CScriptID: TX_SCRIPTHASH destination | ||||
* A CTxDestination is the internal data type encoded in a CBitcoinAddress | * A CTxDestination is the internal data type encoded in a bitcoin address | ||||
*/ | */ | ||||
typedef boost::variant<CNoDestination, CKeyID, CScriptID> CTxDestination; | typedef boost::variant<CNoDestination, CKeyID, CScriptID> CTxDestination; | ||||
const char *GetTxnOutputType(txnouttype t); | const char *GetTxnOutputType(txnouttype t); | ||||
bool IsValidDestination(const CTxDestination &dest); | |||||
bool Solver(const CScript &scriptPubKey, txnouttype &typeRet, | bool Solver(const CScript &scriptPubKey, txnouttype &typeRet, | ||||
std::vector<std::vector<uint8_t>> &vSolutionsRet); | std::vector<std::vector<uint8_t>> &vSolutionsRet); | ||||
bool ExtractDestination(const CScript &scriptPubKey, | bool ExtractDestination(const CScript &scriptPubKey, | ||||
CTxDestination &addressRet); | CTxDestination &addressRet); | ||||
bool ExtractDestinations(const CScript &scriptPubKey, txnouttype &typeRet, | bool ExtractDestinations(const CScript &scriptPubKey, txnouttype &typeRet, | ||||
std::vector<CTxDestination> &addressRet, | std::vector<CTxDestination> &addressRet, | ||||
int &nRequiredRet); | int &nRequiredRet); | ||||
CScript GetScriptForDestination(const CTxDestination &dest); | CScript GetScriptForDestination(const CTxDestination &dest); | ||||
CScript GetScriptForRawPubKey(const CPubKey &pubkey); | CScript GetScriptForRawPubKey(const CPubKey &pubkey); | ||||
CScript GetScriptForMultisig(int nRequired, const std::vector<CPubKey> &keys); | CScript GetScriptForMultisig(int nRequired, const std::vector<CPubKey> &keys); | ||||
#endif // BITCOIN_SCRIPT_STANDARD_H | #endif // BITCOIN_SCRIPT_STANDARD_H |