Constructors
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...
| Name | Description |
|---|---|
| other | The pubkey to copy from. |
| bytes | The 32-byte x coordinate. |
| pubkey | The full public key whose x coordinate is used. |