Constructors
Synopses
Declared in <pubkey.h>
Construct an empty x‐only pubkey.
constexpr
XOnlyPubKey() = default;
Copy‐construct an x‐only pubkey from another.
constexpr
XOnlyPubKey(XOnlyPubKey const& other) = default;
Construct an x‐only pubkey from exactly 32 bytes.
constexpr
explicit
XOnlyPubKey(std::span<unsigned char const> bytes);
Construct an x‐only pubkey from a normal pubkey.
explicit
XOnlyPubKey(CPubKey const& pubkey);
Parameters
Name |
Description |
other |
The pubkey to copy from. |
bytes |
The 32‐byte x coordinate. |
pubkey |
The full public key whose x coordinate is used. |
Created with MrDocs