|
Monero
|
#include "include_base_utils.h"#include "cryptonote_basic/cryptonote_basic_impl.h"#include "cryptonote_basic/account.h"#include "cryptonote_core/cryptonote_tx_utils.h"#include "misc_language.h"#include "string_tools.h"#include <boost/regex.hpp>#include <common/apply_permutation.h>#include <iomanip>#include "common/util.h"#include "common/command_line.h"#include "trezor_tests.h"#include "tools.h"#include "device/device_cold.hpp"#include "device_trezor/device_trezor.hpp"
Macros | |
| #define | HW_TREZOR_NAME "Trezor" |
| #define | TREZOR_ACCOUNT_ORDERING &m_miner_account, &m_alice_account, &m_bob_account, &m_eve_account |
| #define | TREZOR_COMMON_TEST_CASE(genclass, CORE, BASE) |
| #define | TREZOR_SETUP_CHAIN(NAME) |
| #define | TREZOR_TEST_PREFIX() |
| #define | TREZOR_TEST_SUFFIX() |
| #define | TREZOR_SKIP_IF_VERSION_LEQ(x) |
| #define | TREZOR_TEST_PAYMENT_ID "\xde\xad\xc0\xde\xde\xad\xc0\xde" |
Functions | |
| static device_trezor_test * | ensure_trezor_test_device () |
| static void | rollback_chain (cryptonote::core *core, const cryptonote::block &head) |
| static void | setup_chain (cryptonote::core *core, gen_trezor_base &trezor_base, std::string chain_path, bool fix_chain, const po::variables_map &vm_core) |
| static long | get_env_long (const char *flag_name, boost::optional< long > def=boost::none) |
| int | main (int argc, char *argv[]) |
| static bool | unserialize_chain_from_file (std::vector< test_event_entry > &events, gen_trezor_base &test_base, const std::string &file_path) |
| static bool | serialize_chain_to_file (std::vector< test_event_entry > &events, gen_trezor_base &test_base, const std::string &file_path) |
| template<class t_test_class> | |
| static bool | init_core_replay_events (std::vector< test_event_entry > &events, cryptonote::core *core, const po::variables_map &vm_core) |
| static void | add_hforks (std::vector< test_event_entry > &events, const v_hardforks_t &hard_forks) |
| static void | add_top_hfork (std::vector< test_event_entry > &events, const v_hardforks_t &hard_forks) |
| static crypto::public_key | get_tx_pub_key_from_received_outs (const tools::wallet2::transfer_details &td) |
| static void | setup_shim (hw::wallet_shim *shim) |
| bool | get_short_payment_id (crypto::hash8 &payment_id8, const tools::wallet2::pending_tx &ptx, hw::device &hwdev) |
| static tools::wallet2::tx_construction_data | get_construction_data_with_decrypted_short_payment_id (const tools::wallet2::pending_tx &ptx, hw::device &hwdev) |
| static std::string | get_payment_id (const std::vector< uint8_t > &tx_extra) |
| static crypto::hash8 | to_short_payment_id (const std::string &payment_id) |
| static crypto::hash | to_long_payment_id (const std::string &payment_id) |
| static std::vector< uint8_t > | build_payment_id_extra (const std::string &payment_id) |
| static cryptonote::address_parse_info | init_addr_parse_info (cryptonote::account_public_address &addr, bool is_sub=false, boost::optional< crypto::hash8 > payment_id=boost::none) |
| static void | expand_tsx (cryptonote::transaction &tx) |
| static std::vector< tools::wallet2 * > | vct_wallets (tools::wallet2 *w1=nullptr, tools::wallet2 *w2=nullptr, tools::wallet2 *w3=nullptr, tools::wallet2 *w4=nullptr, tools::wallet2 *w5=nullptr) |
| static uint64_t | get_available_funds (tools::wallet2 *wallet, uint32_t account=0) |
Variables | |
| static device_trezor_test * | trezor_device = nullptr |
| #define HW_TREZOR_NAME "Trezor" |
| #define TREZOR_ACCOUNT_ORDERING &m_miner_account, &m_alice_account, &m_bob_account, &m_eve_account |
| #define TREZOR_COMMON_TEST_CASE | ( | genclass, | |
| CORE, | |||
| BASE ) |
| #define TREZOR_SETUP_CHAIN | ( | NAME | ) |
| #define TREZOR_SKIP_IF_VERSION_LEQ | ( | x | ) |
| #define TREZOR_TEST_PAYMENT_ID "\xde\xad\xc0\xde\xde\xad\xc0\xde" |
| #define TREZOR_TEST_PREFIX | ( | ) |
| #define TREZOR_TEST_SUFFIX | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| bool get_short_payment_id | ( | crypto::hash8 & | payment_id8, |
| const tools::wallet2::pending_tx & | ptx, | ||
| hw::device & | hwdev ) |
|
static |
|
static |
|
static |
| int main | ( | int | argc, |
| char * | argv[] ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |