Electroneum
test_wallet2_expand_subaddresses< Major, Minor > Class Template Reference

#include <subaddress_expand.h>

Inheritance diagram for test_wallet2_expand_subaddresses< Major, Minor >:
Collaboration diagram for test_wallet2_expand_subaddresses< Major, Minor >:

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 = 1
 
static const size_t major = Major
 
static const size_t minor = Minor
 

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

template<size_t Major, size_t Minor>
class test_wallet2_expand_subaddresses< Major, Minor >

Definition at line 39 of file subaddress_expand.h.

Member Function Documentation

◆ init()

template<size_t Major, size_t Minor>
bool test_wallet2_expand_subaddresses< Major, Minor >::init ( )
inline

Definition at line 46 of file subaddress_expand.h.

47  {
49  return false;
50  wallet.set_subaddress_lookahead(1, 1);
51  crypto::secret_key spendkey = rct::rct2sk(rct::skGen());
52  wallet.generate("", "", spendkey, true, false);
54  return true;
55  }
void set_subaddress_lookahead(size_t major, size_t minor)
Definition: wallet2.cpp:1535
void skGen(key &sk)
Definition: rctOps.cpp:253
const char * spendkey
Definition: multisig.cpp:38
void generate(const std::string &wallet_, const epee::wipeable_string &password, const epee::wipeable_string &multisig_data, bool create_address_file=false)
Generates a wallet or restores one.
Definition: wallet2.cpp:4869
Here is the call graph for this function:

◆ test()

template<size_t Major, size_t Minor>
bool test_wallet2_expand_subaddresses< Major, Minor >::test ( )
inline

Definition at line 57 of file subaddress_expand.h.

58  {
59  wallet.expand_subaddresses({1, 0});
60  return true;
61  }
void expand_subaddresses(const cryptonote::subaddress_index &index, const bool udpate_account_tags=true)
Definition: wallet2.cpp:1478
Here is the call graph for this function:

Member Data Documentation

◆ loop_count

template<size_t Major, size_t Minor>
const size_t test_wallet2_expand_subaddresses< Major, Minor >::loop_count = 1
static

Definition at line 42 of file subaddress_expand.h.

◆ major

template<size_t Major, size_t Minor>
const size_t test_wallet2_expand_subaddresses< Major, Minor >::major = Major
static

Definition at line 43 of file subaddress_expand.h.

◆ minor

template<size_t Major, size_t Minor>
const size_t test_wallet2_expand_subaddresses< Major, Minor >::minor = Minor
static

Definition at line 44 of file subaddress_expand.h.


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