Electroneum
BulletproofFuzzer Class Reference
Inheritance diagram for BulletproofFuzzer:
Collaboration diagram for BulletproofFuzzer:

Public Member Functions

virtual int run (const std::string &filename)
 
- Public Member Functions inherited from Fuzzer
virtual int init ()
 

Detailed Description

Definition at line 36 of file bulletproof.cpp.

Member Function Documentation

◆ run()

int BulletproofFuzzer::run ( const std::string &  filename)
virtual

Implements Fuzzer.

Definition at line 44 of file bulletproof.cpp.

45 {
46  std::string s;
47 
49  {
50  std::cout << "Error: failed to load file " << filename << std::endl;
51  return 1;
52  }
53  std::stringstream ss;
54  ss << s;
55  binary_archive<false> ba(ss);
56  rct::Bulletproof proof = AUTO_VAL_INIT(proof);
57  bool r = ::serialization::serialize(ba, proof);
58  if(!r)
59  {
60  std::cout << "Error: failed to parse bulletproof from file " << filename << std::endl;
61  return 1;
62  }
63  return 0;
64 }
::std::string string
Definition: gtest-port.h:1097
bool load_file_to_string(const std::string &path_to_file, std::string &target_str, size_t max_size=1000000000)
void serialize(Archive &a, unsigned_tx_set &x, const boost::serialization::version_type ver)
#define AUTO_VAL_INIT(v)
Definition: misc_language.h:53
Here is the call graph for this function:

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