Returns whether this script is a witness program and extracts its parts.

Synopsis

Declared in <script/script.h>

bool
IsWitnessProgram(
    int& version,
    std::vector<unsigned char>& program) const;

Return Value

true if this script is a witness program.

Parameters

Name

Description

version

Set to the witness program version.

program

Set to the witness program bytes.

Created with MrDocs