Electroneum
Loading...
Searching...
No Matches
output_index Struct Reference

#include <chaingen.h>

Collaboration diagram for output_index:

Public Member Functions

 output_index (const cryptonote::txout_target_v &_out, uint64_t _a, size_t _h, size_t tno, size_t ono, const cryptonote::block *_pb, const cryptonote::transaction *_pt)
 output_index (const output_index &other)
void set_rct (bool arct)
rct::key commitment () const
const std::string toString () const
output_indexoperator= (const output_index &other)

Public Attributes

const cryptonote::txout_target_v out
uint64_t amount
size_t blk_height
size_t tx_no
size_t out_no
size_t idx
uint64_t unlock_time
bool is_coin_base
bool spent
bool rct
rct::key comm
const cryptonote::blockp_blk
const cryptonote::transactionp_tx

Detailed Description

Definition at line 288 of file chaingen.h.

Constructor & Destructor Documentation

◆ output_index() [1/2]

output_index::output_index ( const cryptonote::txout_target_v & _out,
uint64_t _a,
size_t _h,
size_t tno,
size_t ono,
const cryptonote::block * _pb,
const cryptonote::transaction * _pt )
inline

Definition at line 303 of file chaingen.h.

304 : out(_out), amount(_a), blk_height(_h), tx_no(tno), out_no(ono), idx(0), unlock_time(0),
305 is_coin_base(false), spent(false), rct(false), p_blk(_pb), p_tx(_pt)
306 {
307
308 }
uint64_t amount
Definition chaingen.h:290
const cryptonote::transaction * p_tx
Definition chaingen.h:301
size_t blk_height
Definition chaingen.h:291
size_t out_no
Definition chaingen.h:293
bool is_coin_base
Definition chaingen.h:296
const cryptonote::block * p_blk
Definition chaingen.h:300
size_t tx_no
Definition chaingen.h:292
const cryptonote::txout_target_v out
Definition chaingen.h:289
size_t idx
Definition chaingen.h:294
uint64_t unlock_time
Definition chaingen.h:295
Here is the caller graph for this function:

◆ output_index() [2/2]

output_index::output_index ( const output_index & other)
inline

Definition at line 310 of file chaingen.h.

311 : out(other.out), amount(other.amount), blk_height(other.blk_height), tx_no(other.tx_no), rct(other.rct),
312 out_no(other.out_no), idx(other.idx), unlock_time(other.unlock_time), is_coin_base(other.is_coin_base),
313 spent(other.spent), comm(other.comm), p_blk(other.p_blk), p_tx(other.p_tx) { }
rct::key comm
Definition chaingen.h:299
Here is the call graph for this function:

Member Function Documentation

◆ commitment()

rct::key output_index::commitment ( ) const
inline

Definition at line 323 of file chaingen.h.

323 {
324 return comm;
325 }
Here is the caller graph for this function:

◆ operator=()

output_index & output_index::operator= ( const output_index & other)
inline

Definition at line 345 of file chaingen.h.

346 {
347 new(this) output_index(other);
348 return *this;
349 }
output_index(const cryptonote::txout_target_v &_out, uint64_t _a, size_t _h, size_t tno, size_t ono, const cryptonote::block *_pb, const cryptonote::transaction *_pt)
Definition chaingen.h:303
Here is the call graph for this function:

◆ set_rct()

void output_index::set_rct ( bool arct)
inline

Definition at line 315 of file chaingen.h.

315 {
316 rct = arct;
317 if (rct && p_tx->rct_signatures.outPk.size() > out_no)
318 comm = p_tx->rct_signatures.outPk[out_no].mask;
319 else
321 }
key commit(etn_amount amount, const key &mask)
Definition rctOps.cpp:336
key identity()
Definition rctOps.h:73
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toString()

const std::string output_index::toString ( ) const
inline

Definition at line 327 of file chaingen.h.

327 {
328 std::stringstream ss;
329
330 ss << "output_index{blk_height=" << blk_height
331 << " tx_no=" << tx_no
332 << " out_no=" << out_no
333 << " amount=" << amount
334 << " idx=" << idx
335 << " unlock_time=" << unlock_time
336 << " spent=" << spent
337 << " is_coin_base=" << is_coin_base
338 << " rct=" << rct
339 << " comm=" << dump_keys(comm.bytes)
340 << "}";
341
342 return ss.str();
343 }
std::string dump_keys(T *buff32)
Definition chaingen.h:271
Here is the call graph for this function:

Member Data Documentation

◆ amount

uint64_t output_index::amount

Definition at line 290 of file chaingen.h.

◆ blk_height

size_t output_index::blk_height

Definition at line 291 of file chaingen.h.

◆ comm

rct::key output_index::comm

Definition at line 299 of file chaingen.h.

◆ idx

size_t output_index::idx

Definition at line 294 of file chaingen.h.

◆ is_coin_base

bool output_index::is_coin_base

Definition at line 296 of file chaingen.h.

◆ out

const cryptonote::txout_target_v output_index::out

Definition at line 289 of file chaingen.h.

◆ out_no

size_t output_index::out_no

Definition at line 293 of file chaingen.h.

◆ p_blk

const cryptonote::block* output_index::p_blk

Definition at line 300 of file chaingen.h.

◆ p_tx

const cryptonote::transaction* output_index::p_tx

Definition at line 301 of file chaingen.h.

◆ rct

bool output_index::rct

Definition at line 298 of file chaingen.h.

◆ spent

bool output_index::spent

Definition at line 297 of file chaingen.h.

◆ tx_no

size_t output_index::tx_no

Definition at line 292 of file chaingen.h.

◆ unlock_time

uint64_t output_index::unlock_time

Definition at line 295 of file chaingen.h.


The documentation for this struct was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/tests/core_tests/chaingen.h