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

#include <derive_public_key.h>

Inheritance diagram for test_derive_public_key:
Collaboration diagram for test_derive_public_key:

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 derive_public_key.h.

Member Function Documentation

◆ init()

bool test_derive_public_key::init ( )
inline

Definition at line 44 of file derive_public_key.h.

45 {
47 return false;
48
49 crypto::generate_key_derivation(m_tx_pub_key, m_bob.get_keys().m_view_secret_key, m_key_derivation);
50 m_spend_public_key = m_bob.get_keys().m_account_address.m_spend_public_key;
51
52 return true;
53 }
crypto::public_key m_tx_pub_key
cryptonote::account_base m_bob
bool generate_key_derivation(const public_key &key1, const secret_key &key2, key_derivation &derivation)
Definition crypto.h:272
Here is the call graph for this function:

◆ test()

bool test_derive_public_key::test ( )
inline

Definition at line 55 of file derive_public_key.h.

56 {
57 cryptonote::keypair in_ephemeral;
58 crypto::derive_public_key(m_key_derivation, 0, m_spend_public_key, in_ephemeral.pub);
59 return true;
60 }
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::public_key pub
Here is the call graph for this function:

Member Data Documentation

◆ loop_count

const size_t test_derive_public_key::loop_count = 1000
static

Definition at line 42 of file derive_public_key.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/derive_public_key.h