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.
Declared in <script/solver.h>
TxoutType
Solver(
CScript const& scriptPubKey,
std::vector<std::vector<unsigned char>>& vSolutionsRet);
The script type. TxoutType::NONSTANDARD represents a failed solve.
| Name | Description |
|---|---|
| scriptPubKey [in] | Script to parse |
| vSolutionsRet [out] | Vector of parsed pubkeys and hashes |