![]() |
Bitcoin ABC 0.34.2
P2P Digital Currency
|
Go to the source code of this file.
Typedefs | |
| typedef std::vector< uint8_t > | valtype |
Functions | |
| std::string | GetTxnOutputType (TxoutType t) |
| Get the name of a TxoutType as a string. More... | |
| static bool | MatchPayToPubkey (const CScript &script, valtype &pubkey) |
| static bool | MatchPayToPubkeyHash (const CScript &script, valtype &pubkeyhash) |
| static constexpr bool | IsSmallInteger (opcodetype opcode) |
| Test for "small positive integer" script opcodes - OP_1 through OP_16. More... | |
| static bool | MatchMultisig (const CScript &script, unsigned int &required, std::vector< valtype > &pubkeys) |
| TxoutType | Solver (const CScript &scriptPubKey, std::vector< std::vector< uint8_t > > &vSolutionsRet) |
| Parse a scriptPubKey and identify script type for standard scripts. More... | |
| CScript | GetScriptForRawPubKey (const CPubKey &pubKey) |
| Generate a P2PK script for the given pubkey. More... | |
| CScript | GetScriptForMultisig (int nRequired, const std::vector< CPubKey > &keys) |
| Generate a multisig script. More... | |
| typedef std::vector<uint8_t> valtype |
Definition at line 12 of file solver.cpp.
Generate a multisig script.
Definition at line 148 of file solver.cpp.
Generate a P2PK script for the given pubkey.
Definition at line 143 of file solver.cpp.
| std::string GetTxnOutputType | ( | TxoutType | t | ) |
Get the name of a TxoutType as a string.
Definition at line 14 of file solver.cpp.
|
staticconstexpr |
Test for "small positive integer" script opcodes - OP_1 through OP_16.
Definition at line 59 of file solver.cpp.
|
static |
Definition at line 63 of file solver.cpp.
Definition at line 32 of file solver.cpp.
| TxoutType Solver | ( | const CScript & | scriptPubKey, |
| std::vector< std::vector< uint8_t > > & | vSolutionsRet | ||
| ) |
Parse a scriptPubKey and identify script type for standard scripts.
If successful, returns script type and parsed pubkeys or hashes, depending on the type. For example, for a P2SH script, vSolutionsRet will contain the script hash, for P2PKH it will contain the key hash, etc.
| [in] | scriptPubKey | Script to parse |
| [out] | vSolutionsRet | Vector of parsed pubkeys and hashes |
Definition at line 93 of file solver.cpp.