52 static const char *
const spendkey_hex =
"0b4f47697ec99c3de6579304e5f25c68b07afbe55b71d99620bf6cbf4e45a80f";
62 catch (
const std::exception &e)
64 std::cerr <<
"Error on ColdTransactionFuzzer::init: " << e.what() << std::endl;
76 std::cout <<
"Error: failed to load file " << filename << std::endl;
79 s =
std::string(
"\x01\x16serialization::archive") + s;
83 std::stringstream iss;
87 std::vector<tools::wallet2::pending_tx> ptx;
88 bool success = wallet.
sign_tx(exported_txs,
"/tmp/cold-transaction-test-signed", ptx);
89 std::cout << (
success ?
"signed" :
"error") << std::endl;
91 catch (
const std::exception &e)
93 std::cerr <<
"Failed to sign transaction: " << e.what() << std::endl;
99 int main(
int argc,
const char **argv)
bool load_file_to_string(const std::string &path_to_file, std::string &target_str, size_t max_size=1000000000)
Holds cryptonote related classes and helpers.
virtual int run(const std::string &filename)
int main(int argc, const char **argv)
expect< void > success() noexcept
int run_fuzzer(int argc, const char **argv, Fuzzer &fuzzer)
#define CATCH_ENTRY_L0(lacation, return_val)