PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Public Member Functions | Public Attributes | Friends | List of all members
CTxOut Class Reference

An output of a transaction. More...

#include <transaction.h>

Collaboration diagram for CTxOut:
[legend]

Public Member Functions

 CTxOut ()
 
 CTxOut (const CAmount &nValueIn, CScript scriptPubKeyIn)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
void SetNull ()
 
bool IsNull () const
 
void SetEmpty ()
 
bool IsEmpty () const
 
uint256 GetHash () const
 
bool IsDust (CFeeRate minRelayTxFee) const
 
std::string ToString () const
 

Public Attributes

CAmount nValue
 
CScript scriptPubKey
 
int nRounds
 
std::vector< unsigned char > txPriv
 
std::vector< unsigned char > txPub
 
MaskValue maskValue
 
std::vector< unsigned char > masternodeStealthAddress
 
std::vector< unsigned char > commitment
 
 ADD_SERIALIZE_METHODS
 

Friends

bool operator== (const CTxOut &a, const CTxOut &b)
 
bool operator!= (const CTxOut &a, const CTxOut &b)
 

Detailed Description

An output of a transaction.

It contains the public key that the next input must be able to sign with to claim it.

Definition at line 164 of file transaction.h.

Constructor & Destructor Documentation

◆ CTxOut() [1/2]

CTxOut::CTxOut ( )
inline

Definition at line 180 of file transaction.h.

Here is the call graph for this function:

◆ CTxOut() [2/2]

CTxOut::CTxOut ( const CAmount nValueIn,
CScript  scriptPubKeyIn 
)

Definition at line 65 of file transaction.cpp.

Member Function Documentation

◆ GetHash()

uint256 CTxOut::GetHash ( ) const

Definition at line 80 of file transaction.cpp.

Here is the call graph for this function:

◆ IsDust()

bool CTxOut::IsDust ( CFeeRate  minRelayTxFee) const
inline

Definition at line 227 of file transaction.h.

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

◆ IsEmpty()

bool CTxOut::IsEmpty ( ) const
inline

Definition at line 220 of file transaction.h.

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

◆ IsNull()

bool CTxOut::IsNull ( ) const
inline

Definition at line 209 of file transaction.h.

◆ SerializationOp()

template<typename Stream , typename Operation >
void CTxOut::SerializationOp ( Stream &  s,
Operation  ser_action,
int  nType,
int  nVersion 
)
inline

Definition at line 190 of file transaction.h.

◆ SetEmpty()

void CTxOut::SetEmpty ( )
inline

Definition at line 214 of file transaction.h.

Here is the call graph for this function:

◆ SetNull()

void CTxOut::SetNull ( )
inline

Definition at line 202 of file transaction.h.

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

◆ ToString()

std::string CTxOut::ToString ( ) const

Definition at line 85 of file transaction.cpp.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const CTxOut a,
const CTxOut b 
)
friend

Definition at line 247 of file transaction.h.

◆ operator==

bool operator== ( const CTxOut a,
const CTxOut b 
)
friend

Definition at line 240 of file transaction.h.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CTxOut::ADD_SERIALIZE_METHODS

Definition at line 187 of file transaction.h.

◆ commitment

std::vector<unsigned char> CTxOut::commitment

Definition at line 178 of file transaction.h.

◆ maskValue

MaskValue CTxOut::maskValue

Definition at line 176 of file transaction.h.

◆ masternodeStealthAddress

std::vector<unsigned char> CTxOut::masternodeStealthAddress

Definition at line 177 of file transaction.h.

◆ nRounds

int CTxOut::nRounds

Definition at line 169 of file transaction.h.

◆ nValue

CAmount CTxOut::nValue

Definition at line 167 of file transaction.h.

◆ scriptPubKey

CScript CTxOut::scriptPubKey

Definition at line 168 of file transaction.h.

◆ txPriv

std::vector<unsigned char> CTxOut::txPriv

Definition at line 172 of file transaction.h.

◆ txPub

std::vector<unsigned char> CTxOut::txPub

Definition at line 173 of file transaction.h.


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