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

#include <derive_secret_key.h>

Inheritance diagram for test_derive_secret_key:
Collaboration diagram for test_derive_secret_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 = 10000

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

Member Function Documentation

◆ init()

bool test_derive_secret_key::init ( )
inline

Definition at line 44 of file derive_secret_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_secret_key = m_bob.get_keys().m_spend_secret_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_secret_key::test ( )
inline

Definition at line 55 of file derive_secret_key.h.

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

Member Data Documentation

◆ loop_count

const size_t test_derive_secret_key::loop_count = 10000
static

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