Electroneum
test_generate_key_image_helper Class Reference

#include <generate_key_image_helper.h>

Inheritance diagram for test_generate_key_image_helper:
Collaboration diagram for test_generate_key_image_helper:

Public Member Functions

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

Static Public Attributes

static const size_t loop_count = 500
 

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 41 of file generate_key_image_helper.h.

Member Function Documentation

◆ test()

bool test_generate_key_image_helper::test ( )
inline

Definition at line 46 of file generate_key_image_helper.h.

47  {
48  cryptonote::keypair in_ephemeral;
50  std::unordered_map<crypto::public_key, cryptonote::subaddress_index> subaddresses;
51  subaddresses[m_bob.get_keys().m_account_address.m_spend_public_key] = {0,0};
52  crypto::public_key out_key = boost::get<cryptonote::txout_to_key>(m_tx.vout[0].target).key;
53  return cryptonote::generate_key_image_helper(m_bob.get_keys(), subaddresses, out_key, m_tx_pub_key, m_additional_tx_pub_keys, 0, in_ephemeral, ki, hw::get_device("default"));
54  }
std::vector< crypto::public_key > m_additional_tx_pub_keys
const char * key
Definition: hmac_keccak.cpp:39
crypto::public_key m_tx_pub_key
const account_keys & get_keys() const
Definition: account.cpp:264
bool generate_key_image_helper(const account_keys &ack, const std::unordered_map< crypto::public_key, subaddress_index > &subaddresses, const crypto::public_key &out_key, const crypto::public_key &tx_public_key, const std::vector< crypto::public_key > &additional_tx_public_keys, size_t real_output_index, keypair &in_ephemeral, crypto::key_image &ki, hw::device &hwdev, const uint32_t account_major_offset)
device & get_device(const std::string &device_descriptor)
Definition: device.cpp:95
POD_CLASS public_key
Definition: crypto.h:76
account_public_address m_account_address
Definition: account.h:43
POD_CLASS key_image
Definition: crypto.h:102
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_generate_key_image_helper::loop_count = 500
static

Definition at line 44 of file generate_key_image_helper.h.


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