Electroneum
Loading...
Searching...
No Matches
test_generate_key_image Class Reference

#include <generate_key_image.h>

Inheritance diagram for test_generate_key_image:
Collaboration diagram for test_generate_key_image:

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 39 of file generate_key_image.h.

Member Function Documentation

◆ init()

bool test_generate_key_image::init ( )
inline

Definition at line 44 of file generate_key_image.h.

45 {
46 using namespace cryptonote;
47
49 return false;
50
51 account_keys bob_keys = m_bob.get_keys();
52
53 crypto::key_derivation recv_derivation;
55
56 crypto::derive_public_key(recv_derivation, 0, bob_keys.m_account_address.m_spend_public_key, m_in_ephemeral.pub);
57 crypto::derive_secret_key(recv_derivation, 0, bob_keys.m_spend_secret_key, m_in_ephemeral.sec);
58
59 return true;
60 }
crypto::public_key m_tx_pub_key
cryptonote::account_base m_bob
POD_CLASS key_derivation
Definition crypto.h:101
void derive_secret_key(const key_derivation &derivation, std::size_t output_index, const secret_key &base, secret_key &derived_key)
Definition crypto.h:282
bool generate_key_derivation(const public_key &key1, const secret_key &key2, key_derivation &derivation)
Definition crypto.h:272
bool derive_public_key(const key_derivation &derivation, std::size_t output_index, const public_key &base, public_key &derived_key)
Definition crypto.h:275
crypto::secret_key m_view_secret_key
Definition account.h:45
crypto::secret_key m_spend_secret_key
Definition account.h:44
account_public_address m_account_address
Definition account.h:43
Here is the call graph for this function:

◆ test()

bool test_generate_key_image::test ( )
inline

Definition at line 62 of file generate_key_image.h.

63 {
65 crypto::generate_key_image(m_in_ephemeral.pub, m_in_ephemeral.sec, ki);
66 return true;
67 }
POD_CLASS key_image
Definition crypto.h:105
void generate_key_image(const public_key &pub, const secret_key &sec, key_image &image)
Definition crypto.h:324
Here is the call graph for this function:

Member Data Documentation

◆ loop_count

const size_t test_generate_key_image::loop_count = 1000
static

Definition at line 42 of file generate_key_image.h.


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