proof.hpp 710 B

1234567891011121314151617181920212223242526272829303132333435
  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. // HBC security
  17. std::string hbc;
  18. // Malicious security
  19. std::vector<Curvepoint> curvepointUniversals;
  20. std::vector<CurveBipoint> curveBipointUniversals;
  21. std::vector<TwistBipoint> twistBipointUniversals;
  22. std::vector<Scalar> challengeParts;
  23. std::vector<Scalar> responseParts;
  24. };
  25. Scalar oracle(const std::string& input);
  26. #endif