veriblock-pop-cpp
C++11 Libraries for leveraging VeriBlock Proof-Of-Proof blockchain technology.
altintegration::btc::TxOut Struct Reference

An output of a transaction. More...

Detailed Description

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

Definition at line 76 of file transaction.hpp.

#include <transaction.hpp>

+ Collaboration diagram for altintegration::btc::TxOut:

Public Member Functions

template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action)
 

Public Attributes

Amount nValue
 
Script scriptPubKey
 
 ADD_SERIALIZE_METHODS
 

Friends

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

Member Function Documentation

◆ SerializationOp()

template<typename Stream , typename Operation >
void altintegration::btc::TxOut::SerializationOp ( Stream &  s,
Operation  ser_action 
)
inline

Definition at line 83 of file transaction.hpp.

83 {
84 READWRITE(nValue);
85 READWRITE(scriptPubKey);
86 }

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 92 of file transaction.hpp.

92{ return !(a == b); }

◆ operator==

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

Definition at line 88 of file transaction.hpp.

88 {
89 return a.nValue == b.nValue && a.scriptPubKey == b.scriptPubKey;
90 }

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

altintegration::btc::TxOut::ADD_SERIALIZE_METHODS

Definition at line 80 of file transaction.hpp.

◆ nValue

Amount altintegration::btc::TxOut::nValue

Definition at line 77 of file transaction.hpp.

◆ scriptPubKey

Script altintegration::btc::TxOut::scriptPubKey

Definition at line 78 of file transaction.hpp.


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