MatchMultiA

Determine if script is a "multi_a" script. Returns (threshold, keyspans) if so, and nullopt otherwise. The keyspans refer to bytes in the passed script.

Synopsis

Declared in <script/solver.h>

std::optional<std::pair<int, std::vector<std::span<unsigned char const>>>>
MatchMultiA(CScript const& script);

Return Value

The threshold and key spans if script is a multi_a script, std::nullopt otherwise.

Parameters

NameDescription
scriptThe script to inspect.