Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Private Attributes | Friends | List of all members
WitnessUnknown Struct Reference

CTxDestination subtype to encode any future Witness version. More...

#include <addresstype.h>

Inheritance diagram for WitnessUnknown:
[legend]

Public Member Functions

 WitnessUnknown (unsigned int version, const std::vector< unsigned char > &program)
 
 WitnessUnknown (int version, const std::vector< unsigned char > &program)
 
unsigned int GetWitnessVersion () const
 
const std::vector< unsigned char > & GetWitnessProgram () const LIFETIMEBOUND
 

Private Attributes

unsigned int m_version
 
std::vector< unsigned char > m_program
 

Friends

bool operator== (const WitnessUnknown &w1, const WitnessUnknown &w2)
 
bool operator< (const WitnessUnknown &w1, const WitnessUnknown &w2)
 

Detailed Description

CTxDestination subtype to encode any future Witness version.

Definition at line 95 of file addresstype.h.

Constructor & Destructor Documentation

◆ WitnessUnknown() [1/2]

WitnessUnknown::WitnessUnknown ( unsigned int  version,
const std::vector< unsigned char > &  program 
)
inline

Definition at line 102 of file addresstype.h.

◆ WitnessUnknown() [2/2]

WitnessUnknown::WitnessUnknown ( int  version,
const std::vector< unsigned char > &  program 
)
inline

Definition at line 103 of file addresstype.h.

Member Function Documentation

◆ GetWitnessProgram()

const std::vector< unsigned char > & WitnessUnknown::GetWitnessProgram ( ) const
inline

Definition at line 106 of file addresstype.h.

◆ GetWitnessVersion()

unsigned int WitnessUnknown::GetWitnessVersion ( ) const
inline

Definition at line 105 of file addresstype.h.

Friends And Related Function Documentation

◆ operator<

bool operator< ( const WitnessUnknown w1,
const WitnessUnknown w2 
)
friend

Definition at line 113 of file addresstype.h.

◆ operator==

bool operator== ( const WitnessUnknown w1,
const WitnessUnknown w2 
)
friend

Definition at line 108 of file addresstype.h.

Member Data Documentation

◆ m_program

std::vector<unsigned char> WitnessUnknown::m_program
private

Definition at line 99 of file addresstype.h.

◆ m_version

unsigned int WitnessUnknown::m_version
private

Definition at line 98 of file addresstype.h.


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