[#XOnlyPubKey-2constructor-06]
= xref:XOnlyPubKey.adoc[XOnlyPubKey]::XOnlyPubKey
:relfileprefix: ../
:mrdocs:

Construct an x&hyphen;only pubkey from a normal pubkey&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
XOnlyPubKey(xref:CPubKey.adoc[CPubKey] const& pubkey);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pubkey*
| The full public key whose x coordinate is used&period;
|===


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