Returns whether this script is a witness program and extracts its parts.
Declared in <script/script.h>
bool
IsWitnessProgram(
int& version,
std::vector<unsigned char>& program) const;
true if this script is a witness program.
| Name | Description |
|---|---|
| version | Set to the witness program version. |
| program | Set to the witness program bytes. |