Bitcoin Core 32.99.0
P2P Digital Currency
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
bip352::SilentPaymentsDestination Struct Reference

#include <bip352.h>

Collaboration diagram for bip352::SilentPaymentsDestination:
[legend]

Public Member Functions

uint8_t GetVersion () const
 
const CPubKey & GetScanPubKey () const
 
const CPubKey & GetSpendPubKey () const
 
std::span< const unsigned char > GetExtensionData () const
 
bool operator== (const SilentPaymentsDestination &) const =default
 

Static Public Member Functions

static std::optional< SilentPaymentsDestination > From (const CPubKey &scan_pubkey, const CPubKey &spend_pubkey, uint8_t version=0, std::span< const unsigned char > extension_data={})
 

Private Member Functions

 SilentPaymentsDestination (uint8_t version, const CPubKey &scan_pubkey, const CPubKey &spend_pubkey, std::span< const unsigned char > extension_data={})
 

Private Attributes

uint8_t m_version
 
CPubKey m_scan_pubkey
 
CPubKey m_spend_pubkey
 
std::vector< unsigned char > m_extension_data
 

Detailed Description

Definition at line 69 of file bip352.h.

Constructor & Destructor Documentation

◆ SilentPaymentsDestination()

bip352::SilentPaymentsDestination::SilentPaymentsDestination ( uint8_t  version,
const CPubKey &  scan_pubkey,
const CPubKey &  spend_pubkey,
std::span< const unsigned char >  extension_data = {} 
)
inlineprivate

Definition at line 77 of file bip352.h.

Here is the caller graph for this function:

Member Function Documentation

◆ From()

std::optional< SilentPaymentsDestination > bip352::SilentPaymentsDestination::From ( const CPubKey &  scan_pubkey,
const CPubKey &  spend_pubkey,
uint8_t  version = 0,
std::span< const unsigned char >  extension_data = {} 
)
static

Definition at line 51 of file bip352.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetExtensionData()

std::span< const unsigned char > bip352::SilentPaymentsDestination::GetExtensionData ( ) const
inline

Definition at line 96 of file bip352.h.

◆ GetScanPubKey()

const CPubKey & bip352::SilentPaymentsDestination::GetScanPubKey ( ) const
inline

Definition at line 94 of file bip352.h.

◆ GetSpendPubKey()

const CPubKey & bip352::SilentPaymentsDestination::GetSpendPubKey ( ) const
inline

Definition at line 95 of file bip352.h.

◆ GetVersion()

uint8_t bip352::SilentPaymentsDestination::GetVersion ( ) const
inline

Definition at line 93 of file bip352.h.

◆ operator==()

bool bip352::SilentPaymentsDestination::operator== ( const SilentPaymentsDestination &  ) const
default

Member Data Documentation

◆ m_extension_data

std::vector<unsigned char> bip352::SilentPaymentsDestination::m_extension_data
private

Definition at line 75 of file bip352.h.

◆ m_scan_pubkey

CPubKey bip352::SilentPaymentsDestination::m_scan_pubkey
private

Definition at line 73 of file bip352.h.

◆ m_spend_pubkey

CPubKey bip352::SilentPaymentsDestination::m_spend_pubkey
private

Definition at line 74 of file bip352.h.

◆ m_version

uint8_t bip352::SilentPaymentsDestination::m_version
private

Definition at line 72 of file bip352.h.


The documentation for this struct was generated from the following files: