Check that a signature uses a valid encoding for the given verification flags.

Synopsis

Declared in <script/interpreter.h>

bool
CheckSignatureEncoding(
    std::vector<unsigned char> const& vchSig,
    script_verify_flags flags,
    ScriptError* serror);

Return Value

true if the signature encoding is acceptable.

Parameters

Name

Description

vchSig

The serialized signature to validate.

flags

The active script verification flags.

serror

Set to the script error when validation fails.

Created with MrDocs