[#CPubKey-2constructor-00]
= xref:CPubKey.adoc[CPubKey]::CPubKey
:relfileprefix: ../
:mrdocs:

Constructors

== Synopses

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

Construct an invalid public key&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CPubKey/2constructor-0d.adoc[CPubKey]();
----

[.small]#xref:CPubKey/2constructor-0d.adoc[_» more&period;&period;&period;_]#

Construct a public key from a byte vector&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:CPubKey/2constructor-02.adoc[CPubKey](std::span&lt;uint8&lowbar;t const&gt; &lowbar;vch);
----

[.small]#xref:CPubKey/2constructor-02.adoc[_» more&period;&period;&period;_]#

Construct a public key using begin&sol;end iterators to byte data&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename T&gt;
xref:CPubKey/2constructor-0c.adoc[CPubKey](
    T const pbegin,
    T const pend);
----

[.small]#xref:CPubKey/2constructor-0c.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;vch*
| The serialized public key bytes&period;
| *pbegin*
| Iterator to the first byte of the serialized key&period;
| *pend*
| Iterator past the last byte of the serialized key&period;
|===


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