[#CheckSignatureEncoding]
= CheckSignatureEncoding
:mrdocs:

Check that a signature uses a valid encoding for the given verification flags&period;

== Synopsis

Declared in `&lt;script&sol;interpreter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
CheckSignatureEncoding(
    std::vector&lt;unsigned char&gt; const& vchSig,
    xref:script_verify_flags.adoc[script&lowbar;verify&lowbar;flags] flags,
    xref:ScriptError.adoc[ScriptError]* serror);
----

== Return Value

`true` if the signature encoding is acceptable&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *vchSig*
| The serialized signature to validate&period;
| *flags*
| The active script verification flags&period;
| *serror*
| Set to the script error when validation fails&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
