43 virtual int run(
const std::string &filename);
51 static const char *
const spendkey_hex =
"0b4f47697ec99c3de6579304e5f25c68b07afbe55b71d99620bf6cbf4e45a80f";
58 wallet.set_subaddress_lookahead(1, 1);
59 wallet.generate(
"",
"",
spendkey,
true,
false);
61 catch (
const std::exception &e)
63 std::cerr <<
"Error on ColdOutputsFuzzer::init: " << e.what() << std::endl;
75 std::cout <<
"Error: failed to load file " << filename << std::endl;
78 s = std::string(
"\x01\x16serialization::archive") + s;
81 std::pair<size_t, std::vector<tools::wallet2::transfer_details>> outputs;
82 std::stringstream iss;
86 size_t n_outputs = wallet.import_outputs(outputs);
87 std::cout << boost::lexical_cast<std::string>(n_outputs) <<
" outputs imported" << std::endl;
89 catch (
const std::exception &e)
91 std::cerr <<
"Failed to import outputs: " << e.what() << std::endl;
97int main(
int argc,
const char **argv)
virtual int run(const std::string &filename)
int run_fuzzer(int argc, const char **argv, Fuzzer &fuzzer)
#define CATCH_ENTRY_L0(lacation, return_val)
epee::mlocked< tools::scrubbed< ec_scalar > > secret_key
Holds cryptonote related classes and helpers.
bool load_file_to_string(const std::string &path_to_file, std::string &target_str, size_t max_size=1000000000)