proof.hpp 928 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef __PROOF_HPP
  2. #define __PROOF_HPP
  3. #include <openssl/evp.h>
  4. #include <openssl/sha.h>
  5. #include <string>
  6. #include <vector>
  7. #include <sstream>
  8. #include <iomanip>
  9. #include "Scalar.hpp"
  10. #include "Curvepoint.hpp"
  11. #include "Bipoint.hpp"
  12. class Proof {
  13. public:
  14. Proof()
  15. { /* */ }
  16. Proof(std::string hbc)
  17. : hbc(hbc)
  18. { /* */ }
  19. void clear();
  20. // HBC security
  21. std::string hbc;
  22. // Malicious security
  23. std::vector<Twistpoint> curvepointUniversals;
  24. std::vector<TwistBipoint> curveBipointUniversals;
  25. std::vector<Scalar> challengeParts;
  26. std::vector<Scalar> responseParts;
  27. bool operator==(const Proof& b);
  28. friend std::ostream& operator<<(std::ostream& os, const Proof& output);
  29. friend std::istream& operator>>(std::istream& is, Proof& input);
  30. };
  31. Scalar oracle(const std::string& input);
  32. #endif