Currently, the multisig descriptor constructions are limited to 16 keys only possibly because of template parsing reasons. Under p2sh context, such scripts would be invalid anyway because of 520-byte rule, but we can support up to 20 keys for CHECKMULTISIG in witness script context. 


SCRIPT_VERIFY_MINIMALIF = (1U << 13),
    
    
    SCRIPT_VERIFY_NULLFAIL = (1U << 14),
    
    
    SCRIPT_VERIFY_WITNESS_PUBKEYTYPE = (1U << 15),
    
    
    SCRIPT_VERIFY_CONST_SCRIPTCODE = (1U << 16),
    
    
    SCRIPT_VERIFY_TAPROOT = (1U << 17),
    
    
    SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_TAPROOT_VERSION = (1U << 18),
    
    SCRIPT_VERIFY_DISCOURAGE_OP_SUCCESS = (1U << 19),
    
    SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_PUBKEYTYPE = (1U << 20),
};
bool CheckSignatureEncoding(const std::vector<unsigned char> &vchSig, unsigned int flags, ScriptError* serror);
struct PrecomputedTransactionData
{