IsSegWitOutput

Check whether a scriptPubKey is known to be segwit.

Synopsis

Declared in <script/sign.h>

bool
IsSegWitOutput(
    SigningProvider const& provider,
    CScript const& script);

Return Value

True if the script is a known segwit output.

Parameters

NameDescription
providerThe source of scripts used to resolve the output.
scriptThe output script to inspect.