proof.hpp 828 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. Proof(std::string hbc);
  16. void clear();
  17. // HBC security
  18. std::string hbc;
  19. // Malicious security
  20. std::vector<Twistpoint> curvepointUniversals;
  21. std::vector<TwistBipoint> curveBipointUniversals;
  22. std::vector<Scalar> challengeParts;
  23. std::vector<Scalar> responseParts;
  24. friend std::ostream& operator<<(std::ostream& os, const Proof& output);
  25. friend std::istream& operator>>(std::istream& is, Proof& input);
  26. };
  27. Scalar oracle(const std::string& input);
  28. #endif