![]() |
Bitcoin Core 32.99.0
P2P Digital Currency
|
#include <bip352.h>
Public Member Functions | |
| SilentPaymentsLabel (const secp256k1_silentpayments_label &label) | |
| SilentPaymentsLabel (SilentPaymentsLabel &&) noexcept | |
| SilentPaymentsLabel & | operator= (SilentPaymentsLabel &&) noexcept |
| SilentPaymentsLabel (const SilentPaymentsLabel &) | |
| SilentPaymentsLabel & | operator= (const SilentPaymentsLabel &) |
| ~SilentPaymentsLabel () | |
| template<typename Stream > | |
| void | Serialize (Stream &s) const |
| const secp256k1_silentpayments_label * | Get () const LIFETIMEBOUND |
Static Public Member Functions | |
| template<typename Stream > | |
| static std::optional< SilentPaymentsLabel > | Unserialize (Stream &s) |
Static Private Member Functions | |
| static std::optional< SilentPaymentsLabel > | FromBytes (std::span< const unsigned char, CPubKey::COMPRESSED_SIZE > vch) |
| Parses raw bytes into a fully valid label returns std::nullopt if vch is not a validly-encoded label. More... | |
Private Attributes | |
| std::unique_ptr< secp256k1_silentpayments_label > | m_label |
| unsigned char | m_vch [CPubKey::COMPRESSED_SIZE] |
Friends | |
| bool | operator== (const SilentPaymentsLabel &a, const SilentPaymentsLabel &b) |
| bool | operator< (const SilentPaymentsLabel &a, const SilentPaymentsLabel &b) |
| bool | operator> (const SilentPaymentsLabel &a, const SilentPaymentsLabel &b) |
| bool | operator< (const SilentPaymentsLabel &a, std::span< const unsigned char, CPubKey::COMPRESSED_SIZE > b) |
| Transparent comparisons against a raw 33-byte compressed label key, so a LabelTweakMap can be looked up by key bytes (e.g. More... | |
| bool | operator< (std::span< const unsigned char, CPubKey::COMPRESSED_SIZE > a, const SilentPaymentsLabel &b) |
| bip352::SilentPaymentsLabel::SilentPaymentsLabel | ( | const secp256k1_silentpayments_label & | label | ) |
Definition at line 107 of file bip352.cpp.
|
defaultnoexcept |
| bip352::SilentPaymentsLabel::SilentPaymentsLabel | ( | const SilentPaymentsLabel & | label | ) |
Definition at line 126 of file bip352.cpp.
|
default |
|
staticprivate |
Parses raw bytes into a fully valid label returns std::nullopt if vch is not a validly-encoded label.
Definition at line 113 of file bip352.cpp.
| const secp256k1_silentpayments_label * bip352::SilentPaymentsLabel::Get | ( | ) | const |
| SilentPaymentsLabel & bip352::SilentPaymentsLabel::operator= | ( | const SilentPaymentsLabel & | label | ) |
Definition at line 131 of file bip352.cpp.
|
defaultnoexcept |
|
inline |
|
inlinestatic |
|
friend |
|
friend |
Transparent comparisons against a raw 33-byte compressed label key, so a LabelTweakMap can be looked up by key bytes (e.g.
from a secp256k1 callback) without constructing a fully-parsed SilentPaymentsLabel.
|
friend |
|
friend |
|
friend |
|
private |
|
private |