Electroneum
test_is_out_to_acc_precomp Class Reference

#include <is_out_to_acc.h>

Inheritance diagram for test_is_out_to_acc_precomp:
Collaboration diagram for test_is_out_to_acc_precomp:

Public Member Functions

bool init ()
 
bool test ()
 
- Public Member Functions inherited from single_tx_test_base
bool init ()
 

Static Public Attributes

static const size_t loop_count = 1000
 

Additional Inherited Members

- Protected Attributes inherited from single_tx_test_base
cryptonote::account_base m_bob
 
cryptonote::transaction m_tx
 
crypto::public_key m_tx_pub_key
 
std::vector< crypto::public_keym_additional_tx_pub_keys
 

Detailed Description

Definition at line 52 of file is_out_to_acc.h.

Member Function Documentation

◆ init()

bool test_is_out_to_acc_precomp::init ( )
inline

Definition at line 57 of file is_out_to_acc.h.

58  {
60  return false;
62  return true;
63  }
crypto::public_key m_tx_pub_key
bool generate_key_derivation(const public_key &key1, const secret_key &key2, key_derivation &derivation)
Definition: crypto.h:272
const account_keys & get_keys() const
Definition: account.cpp:264
crypto::secret_key m_view_secret_key
Definition: account.h:45
cryptonote::account_base m_bob
Here is the call graph for this function:

◆ test()

bool test_is_out_to_acc_precomp::test ( )
inline

Definition at line 64 of file is_out_to_acc.h.

65  {
66  const cryptonote::txout_to_key& tx_out = boost::get<cryptonote::txout_to_key>(m_tx.vout[0].target);
67  std::unordered_map<crypto::public_key, cryptonote::subaddress_index> subaddresses;
68  subaddresses[m_bob.get_keys().m_account_address.m_spend_public_key] = {0,0};
69  std::vector<crypto::key_derivation> additional_derivations;
70  boost::optional<cryptonote::subaddress_receive_info> info = cryptonote::is_out_to_acc_precomp(subaddresses, tx_out.key, m_derivation, additional_derivations, 0, hw::get_device("default"));
71  return (bool)info;
72  }
const account_keys & get_keys() const
Definition: account.cpp:264
boost::optional< subaddress_receive_info > is_out_to_acc_precomp(const std::unordered_map< crypto::public_key, subaddress_index > &subaddresses, const crypto::public_key &out_key, const crypto::key_derivation &derivation, const std::vector< crypto::key_derivation > &additional_derivations, size_t output_index, hw::device &hwdev)
device & get_device(const std::string &device_descriptor)
Definition: device.cpp:95
CXA_THROW_INFO_T * info
Definition: stack_trace.cpp:91
account_public_address m_account_address
Definition: account.h:43
crypto::public_key key
cryptonote::account_base m_bob
cryptonote::transaction m_tx
Here is the call graph for this function:

Member Data Documentation

◆ loop_count

const size_t test_is_out_to_acc_precomp::loop_count = 1000
static

Definition at line 55 of file is_out_to_acc.h.


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