CheckSignatureEncoding

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

NameDescription
vchSigThe serialized signature to validate.
flagsThe active script verification flags.
serrorSet to the script error when validation fails.