XOnlyPubKey::XOnlyPubKey

Constructors

Synopses

Declared in <pubkey.h>

Construct an empty x-only pubkey.

constexpr
XOnlyPubKey() = default;
» more...

Copy-construct an x-only pubkey from another.

constexpr
XOnlyPubKey(XOnlyPubKey const& other) = default;
» more...

Construct an x-only pubkey from exactly 32 bytes.

constexpr
explicit
XOnlyPubKey(std::span<unsigned char const> bytes);
» more...

Construct an x-only pubkey from a normal pubkey.

explicit
XOnlyPubKey(CPubKey const& pubkey);
» more...

Parameters

NameDescription
otherThe pubkey to copy from.
bytesThe 32-byte x coordinate.
pubkeyThe full public key whose x coordinate is used.