Function bitcoin_scripting::solver
source · pub fn solver(
script_pub_key: &Script,
solutions_ret: &mut Vec<Vec<u8>>
) -> TxoutType
Expand description
| 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. | | ———– | @param[in] scriptPubKey | | Script to parse | ––––– | @param[out] vSolutionsRet | | Vector of parsed pubkeys and hashes | | ———– | @return | | The script type. TxoutType::NONSTANDARD | represents a failed solve. |