[#CPubKey-ValidSize]
= xref:CPubKey.adoc[CPubKey]::ValidSize
:relfileprefix: ../
:mrdocs:

Check whether a byte vector has a valid public key length for its header byte&period;

== Synopsis

Declared in `&lt;pubkey&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
ValidSize(std::vector&lt;unsigned char&gt; const& vch);
----

== Return Value

true if the vector&apos;s length matches the length implied by its first byte&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *vch*
| The candidate serialized public key&period;
|===


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