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

Single spending output. More...

Detailed Description

Definition at line 27 of file output.hpp.

#include <output.hpp>

+ Collaboration diagram for altintegration::Output:

Public Member Functions

 Output (Address _address, Coin _coin)
 
bool operator== (const Output &other) const noexcept
 Compare two Outputs for equality. More...
 
void toVbkEncoding (WriteStream &stream) const
 Convert Output to data stream using Output VBK byte format. More...
 
size_t estimateSize () const
 
std::string toPrettyString () const
 

Public Attributes

Address address {}
 
Coin coin {}
 

Constructor & Destructor Documentation

◆ Output()

altintegration::Output::Output ( Address  _address,
Coin  _coin 
)
inline

Definition at line 33 of file output.hpp.

34 : address(std::move(_address)), coin(_coin) {}

Member Function Documentation

◆ operator==()

bool altintegration::Output::operator== ( const Output other) const
noexcept
Parameters
otherOutputs
Returns
comparing result

◆ toVbkEncoding()

void altintegration::Output::toVbkEncoding ( WriteStream stream) const
Parameters
streamdata stream to write into

Member Data Documentation

◆ address

Address altintegration::Output::address {}

Definition at line 28 of file output.hpp.

◆ coin

Coin altintegration::Output::coin {}

Definition at line 29 of file output.hpp.


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