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

Construct an x&hyphen;only pubkey from exactly 32 bytes&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
explicit
XOnlyPubKey(std::span&lt;unsigned char const&gt; bytes);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bytes*
| The 32&hyphen;byte x coordinate&period;
|===


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