#include "gtest/gtest.h"
#include "cryptonote_basic/account.h"
Go to the source code of this file.
|
| | TEST (account, encrypt_keys) |
| |
◆ TEST()
| TEST |
( |
account |
, |
|
|
encrypt_keys |
|
|
) |
| |
Definition at line 33 of file account.cpp.
45 crypto::chacha_key chacha_key;
46 crypto::generate_chacha_key(&recovery_key,
sizeof(recovery_key), chacha_key, 1);
crypto::secret_key generate(const crypto::secret_key &recovery_key=crypto::secret_key(), bool recover=false, bool two_random=false)
void encrypt_keys(const crypto::chacha_key &key)
const account_keys & get_keys() const
#define ASSERT_EQ(val1, val2)
void decrypt_keys(const crypto::chacha_key &key)
device & get_device(const std::string &device_descriptor)
static keypair generate(hw::device &hwdev)
crypto::secret_key m_view_secret_key
account_public_address m_account_address
crypto::secret_key m_spend_secret_key
std::vector< crypto::secret_key > m_multisig_keys
#define ASSERT_NE(val1, val2)
void encrypt_viewkey(const crypto::chacha_key &key)
void decrypt_viewkey(const crypto::chacha_key &key)