[#XOnlyPubKey-2constructor-00] = xref:XOnlyPubKey.adoc[XOnlyPubKey]::XOnlyPubKey :relfileprefix: ../ :mrdocs: Constructors == Synopses Declared in `<pubkey.h>` Construct an empty x‐only pubkey. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:XOnlyPubKey/2constructor-05c.adoc[XOnlyPubKey]() = default; ---- [.small]#xref:XOnlyPubKey/2constructor-05c.adoc[_» more..._]# Copy‐construct an x‐only pubkey from another. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:XOnlyPubKey/2constructor-0f.adoc[XOnlyPubKey](xref:XOnlyPubKey.adoc[XOnlyPubKey] const& other) = default; ---- [.small]#xref:XOnlyPubKey/2constructor-0f.adoc[_» more..._]# Construct an x‐only pubkey from exactly 32 bytes. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr explicit xref:XOnlyPubKey/2constructor-051.adoc[XOnlyPubKey](std::span<unsigned char const> bytes); ---- [.small]#xref:XOnlyPubKey/2constructor-051.adoc[_» more..._]# Construct an x‐only pubkey from a normal pubkey. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:XOnlyPubKey/2constructor-06.adoc[XOnlyPubKey](xref:CPubKey.adoc[CPubKey] const& pubkey); ---- [.small]#xref:XOnlyPubKey/2constructor-06.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *other* | The pubkey to copy from. | *bytes* | The 32‐byte x coordinate. | *pubkey* | The full public key whose x coordinate is used. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#